ot_interface Class Reference
OT_LIB interface class.
More...
#include <ot_interface.h>
List of all members.
Detailed Description
OT_LIB interface class.
Interface class
Constructor & Destructor Documentation
ot_interface::ot_interface |
( |
const string & |
interfacePath, |
|
|
const string & |
interfaceName, |
|
|
OT_IE_ACCESS |
access = IE_PRIVATE | |
|
) |
| | [private] |
Contructor
- Parameters:
-
| interfacePath | The interface path |
| interfaceName | The interface name |
| access | Interface access mode |
ot_interface::~ot_interface |
( |
void |
|
) |
[private] |
Member Function Documentation
Add a new element to the interface
- Parameters:
-
- Returns:
- True on success otherwise false
void ot_interface::remove |
( |
const string & |
elementName |
) |
|
Remove an element from the interface
- Parameters:
-
| elementName | The element name |
- Returns:
- True on success otherwise false
Get an elemento from interface
- Parameters:
-
- Returns:
- The element or 0 if no element is found
void ot_interface::callFuction |
( |
const string & |
functionName, |
|
|
const ot_obj & |
input, |
|
|
auto_ptr< ot_obj > & |
output | |
|
) |
| | |
Call a function registered in this interface
- Parameters:
-
| functionName | The function name |
| input | Input data |
| output | Function output |
- Returns:
- True on success otherwise false
void ot_interface::addInterface |
( |
const string & |
interfaceName, |
|
|
OT_IE_ACCESS |
access | |
|
) |
| | |
Add a new child interface
- Parameters:
-
| interfaceName | The interface name |
| access | Interface access mode |
void ot_interface::removeInterface |
( |
const string & |
interfaceName |
) |
|
Remove a registered interface
- Parameters:
-
| interfaceName | The interface name |
- Returns:
- True pointer of a new interface or 0 on error
ot_interface* ot_interface::findInterface |
( |
const string & |
iPath |
) |
|
Search a registered interface (from here including the child interfaces)
- Parameters:
-
- Returns:
- True pointer of a find interface or 0 if no interface is found
const ot_map ot_interface::dumpInterface |
( |
void |
|
) |
|
Dump interface/function into a ot_seq (from this iterface)
- Returns:
- True interface/function data
void ot_interface::setAccessMode |
( |
OT_IE_ACCESS |
access |
) |
|
Set the interface access mode
- Parameters:
-
| access | The new access mode |
OT_IE_ACCESS ot_interface::getAccessMode |
( |
void |
|
) |
const |
Get the interface access mode
- Returns:
- The access mode
const string ot_interface::getInterfaceName |
( |
void |
|
) |
const [inline] |
Get the interface name
- Returns:
- The interface name
References m_interfaceName.
const string ot_interface::getInterfacePath |
( |
void |
|
) |
const [inline] |
Get the interface path
- Returns:
- The interface path
References m_interfacePath.
void ot_interface::clear |
( |
void |
|
) |
|
Clear interface, delete all attribures and sub-interfaces.
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file:
- /mnt/USB_DISK/BUILD/prj_sf/otlib/trunk/include/interface/ot_interface.h