#include <ot_manager.h>
Public Member Functions | |
virtual | ~ot_manager (void) |
virtual void | callFunction (const ot_path &fPath, const ot_obj &input, auto_ptr< ot_obj > &output)=0 |
virtual void | dumpInterface (auto_ptr< ot_obj > &output)=0 |
virtual void | pingInterface (void)=0 |
Check interface presence. | |
virtual void | getAttribute (const ot_path &aPath, auto_ptr< ot_obj > &output)=0 |
virtual void | setAttribute (const ot_path &aPath, const ot_obj &newValue)=0 |
virtual void | addAttribute (const ot_path &ePath, const string &name, const ot_obj &o)=0 |
virtual void | removeElement (const ot_path &ePath)=0 |
virtual void | lockAttribute (const ot_path &aPath)=0 |
virtual void | unlockAttribute (const ot_path &aPath)=0 |
virtual void | setInterfaceAccess (const ot_path &iPath, OT_IE_ACCESS a)=0 |
virtual OT_IE_STATUS | getAttributeStatus (const ot_path &aPath)=0 |
virtual void | addInterface (const ot_path &iPath, OT_IE_ACCESS access)=0 |
virtual void | removeInterface (const ot_path &iPath)=0 |
virtual void | addFunction (const ot_path &iPath, ot_functionImplementation *fImpl, OT_IE_ACCESS a)=0 |
virtual void | removeFunction (const ot_path &iPath)=0 |
Protected Member Functions | |
ot_manager (void) |
ot_manager::ot_manager | ( | void | ) | [protected] |
virtual ot_manager::~ot_manager | ( | void | ) | [virtual] |
virtual void ot_manager::callFunction | ( | const ot_path & | fPath, | |
const ot_obj & | input, | |||
auto_ptr< ot_obj > & | output | |||
) | [pure virtual] |
Call a function (in corrent process)
fPath | Path to the function | |
input | Input data | |
output | Output filled by the function |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::dumpInterface | ( | auto_ptr< ot_obj > & | output | ) | [pure virtual] |
Get a interface description
output | Output filled by the function |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::pingInterface | ( | void | ) | [pure virtual] |
virtual void ot_manager::getAttribute | ( | const ot_path & | aPath, | |
auto_ptr< ot_obj > & | output | |||
) | [pure virtual] |
Get an attribute
aPath | Attribute path | |
attrName | Attribute name | |
output | Output filled by the attribute value |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::setAttribute | ( | const ot_path & | aPath, | |
const ot_obj & | newValue | |||
) | [pure virtual] |
Set an attribute
aPath | Attribute path | |
attrName | Attribute name | |
newValue | New attribute value |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::addAttribute | ( | const ot_path & | ePath, | |
const string & | name, | |||
const ot_obj & | o | |||
) | [pure virtual] |
Add a new element
ePath | Element path |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::removeElement | ( | const ot_path & | ePath | ) | [pure virtual] |
Remove an element
ePath | Element path |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::lockAttribute | ( | const ot_path & | aPath | ) | [pure virtual] |
Lock an element
aPath | Element path |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::unlockAttribute | ( | const ot_path & | aPath | ) | [pure virtual] |
Unlock an element
aPath | Element path |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::setInterfaceAccess | ( | const ot_path & | iPath, | |
OT_IE_ACCESS | a | |||
) | [pure virtual] |
Set the interface access
iPath | Interface path |
Implemented in ot_functionManager, and ot_socketManager.
virtual OT_IE_STATUS ot_manager::getAttributeStatus | ( | const ot_path & | aPath | ) | [pure virtual] |
Unlock an element
aPath | Element path |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::addInterface | ( | const ot_path & | iPath, | |
OT_IE_ACCESS | access | |||
) | [pure virtual] |
Add a new child interface
iPath | The interface path | |
access | Interface access mode |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::removeInterface | ( | const ot_path & | iPath | ) | [pure virtual] |
Delete an interface
iPath | The interface path |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::addFunction | ( | const ot_path & | iPath, | |
ot_functionImplementation * | fImpl, | |||
OT_IE_ACCESS | a | |||
) | [pure virtual] |
Add a function to an interface
iPath | The interface path | |
fImpl | Function callback |
Implemented in ot_functionManager, and ot_socketManager.
virtual void ot_manager::removeFunction | ( | const ot_path & | iPath | ) | [pure virtual] |
Remove a function to from an interface
iPath | The interface path |
Implemented in ot_functionManager, and ot_socketManager.