The NETPP device class. More...
#include <netppplus.h>
Public Member Functions | |
int | open (const char *port_name) |
Open the remote device on the specified port name. | |
int | close () |
Close the remote device. | |
Property | getRoot (void) |
Retrieve root node. | |
Property | getProperty (const char *name) |
Obtain property identifier from device. | |
int | getName (std::string &s) |
Get device name. |
A device is normally allocated on the heap and opened/closed using the Device::open() and Device::close() methods.
int close | ( | ) |
See also dcDeviceClose()
References dcDeviceClose().
int getName | ( | std::string & | s | ) |
References dcDevice_GetRoot(), dcProperty_GetName(), DCValue::len, and DCValue::p.
Property getProperty | ( | const char * | name | ) |
A | netpp error code |
References dcProperty_ParseName(), and INVALID_TOKEN.
Property getRoot | ( | void | ) |
int open | ( | const char * | port_name | ) |
See also dcDeviceOpen()
References dcDeviceOpen().