Device Class Reference
[C++ wrapper]

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.

Detailed Description

A device is normally allocated on the heap and opened/closed using the Device::open() and Device::close() methods.


Member Function Documentation

int close (  ) 

See also dcDeviceClose()

References dcDeviceClose().

int getName ( std::string &  s  ) 
Returns:
error code, if string too long

References dcDevice_GetRoot(), dcProperty_GetName(), DCValue::len, and DCValue::p.

Property getProperty ( const char *  name  ) 

See dcProperty_ParseName().

Returns:
The requested property id or:
Exceptions:
A netpp error code

References dcProperty_ParseName(), and INVALID_TOKEN.

Property getRoot ( void   ) 

See dcDevice_GetRoot()

Returns:
The device root property
Exceptions:
A netpp error code

References dcDevice_GetRoot().

int open ( const char *  port_name  ) 

See also dcDeviceOpen()

References dcDeviceOpen().


The documentation for this class was generated from the following files:

Generated on Thu Feb 24 13:50:16 2011 for Device Control library by  doxygen 1.6.1