#include <ot_functionManager.h>
Public Member Functions | |
ot_functionManager (void) | |
Costructor. | |
~ot_functionManager (void) | |
Destructor. | |
void | callFunction (const ot_path &fPath, const ot_obj &input, auto_ptr< ot_obj > &output) |
void | dumpInterface (auto_ptr< ot_obj > &output) |
void | pingInterface (void) |
Check interface presence. | |
void | getAttribute (const ot_path &aPath, auto_ptr< ot_obj > &output) |
void | setAttribute (const ot_path &aPath, const ot_obj &newValue) |
void | addAttribute (const ot_path &ePath, const string &name, const ot_obj &o) |
void | removeElement (const ot_path &ePath) |
void | lockAttribute (const ot_path &aPath) |
void | unlockAttribute (const ot_path &aPath) |
void | setInterfaceAccess (const ot_path &iPath, OT_IE_ACCESS a) |
OT_IE_STATUS | getAttributeStatus (const ot_path &aPath) |
void | addInterface (const ot_path &iPath, OT_IE_ACCESS access=IE_PRIVATE) |
void | removeInterface (const ot_path &iPath) |
void | addFunction (const ot_path &iPath, ot_functionImplementation *fImpl, OT_IE_ACCESS a=IE_PRIVATE) |
void | removeFunction (const ot_path &iPath) |
Private Member Functions | |
ot_interfaceAttribute * | getAttributeElement (const ot_path &aPath) |
Private Attributes | |
ot_interface * | m_root |
The root interface. |
This is the entry point class for all function op.
ot_functionManager::ot_functionManager | ( | void | ) |
Costructor.
ot_functionManager::~ot_functionManager | ( | void | ) |
Destructor.
ot_interfaceAttribute* ot_functionManager::getAttributeElement | ( | const ot_path & | aPath | ) | [private] |
void ot_functionManager::callFunction | ( | const ot_path & | fPath, | |
const ot_obj & | input, | |||
auto_ptr< ot_obj > & | output | |||
) | [virtual] |
Call a function (in corrent process)
fPath | Path to the function | |
input | Input data | |
output | Output filled by the function |
Implements ot_manager.
void ot_functionManager::dumpInterface | ( | auto_ptr< ot_obj > & | output | ) | [virtual] |
void ot_functionManager::pingInterface | ( | void | ) | [virtual] |
void ot_functionManager::getAttribute | ( | const ot_path & | aPath, | |
auto_ptr< ot_obj > & | output | |||
) | [virtual] |
Get an attribute
aPath | Attribute path | |
attrName | Attribute name | |
output | Output filled by the attribute value |
Implements ot_manager.
Set an attribute
aPath | Attribute path | |
attrName | Attribute name | |
newValue | New attribute value |
Implements ot_manager.
void ot_functionManager::removeElement | ( | const ot_path & | ePath | ) | [virtual] |
void ot_functionManager::lockAttribute | ( | const ot_path & | aPath | ) | [virtual] |
void ot_functionManager::unlockAttribute | ( | const ot_path & | aPath | ) | [virtual] |
void ot_functionManager::setInterfaceAccess | ( | const ot_path & | iPath, | |
OT_IE_ACCESS | a | |||
) | [virtual] |
OT_IE_STATUS ot_functionManager::getAttributeStatus | ( | const ot_path & | aPath | ) | [virtual] |
void ot_functionManager::addInterface | ( | const ot_path & | iPath, | |
OT_IE_ACCESS | access = IE_PRIVATE | |||
) | [virtual] |
Add a new child interface
iPath | The interface path | |
access | Interface access mode |
Implements ot_manager.
void ot_functionManager::removeInterface | ( | const ot_path & | iPath | ) | [virtual] |
void ot_functionManager::addFunction | ( | const ot_path & | iPath, | |
ot_functionImplementation * | fImpl, | |||
OT_IE_ACCESS | a = IE_PRIVATE | |||
) | [virtual] |
Add a function to an interface
iPath | The interface path | |
fImpl | Function callback |
Implements ot_manager.
void ot_functionManager::removeFunction | ( | const ot_path & | iPath | ) | [virtual] |
ot_interface* ot_functionManager::m_root [private] |
The root interface.