#include <NodeRegisterManager.h>
Classes | |
| struct | NodeRegisters |
| class | RegisterInfo |
Public Types | |
| typedef boost::unordered_map < std::string, NodeRegisters > | NodeRegisterMap |
| typedef NodeRegisterMap::iterator | NodeRegisterMapIterator |
| typedef boost::unordered_map < std::string, RegisterInfo > | RegisterInfoMap |
| typedef boost::shared_ptr < RegisterInfoMap > | RegisterInfoMapPtr |
Public Member Functions | |
| void | addNode (const std::string &nodeName, const std::string &xmlFile) |
| Add a node to the node register. | |
| RegisterInfo | getControlInfo (const std::string &nodeName, const std::string ®isterName) |
| Get Control information about the passed register. | |
| uint16_t | getControlValue (const std::string &nodeName, const std::string &prop) |
| Get control value of specified node. | |
| unsigned int | getNodeCount () |
| std::string | getNodeType (const std::string &nodeName) |
| RegisterInfo | getStatusInfo (const std::string &nodeName, const std::string ®isterName) |
| Get Status information about the passed register. | |
| uint16_t | getStatusValue (const std::string &nodeName, const std::string &prop) |
| Get status value of specified node. | |
| bool | hasControlProperty (const std::string &nodeName, const std::string &prop) |
| Check to see if node has certain control property. | |
| bool | hasNode (const std::string &nodeName) |
| bool | hasStatusProperty (const std::string &nodeName, const std::string &prop) |
| Check to see if node has certain status property. | |
| NodeRegisterManager () | |
| void | resetControlValues (const std::string &nodeName) |
| Reset control values of a specified node. | |
| void | setControlValue (const std::string &nodeName, const std::string &prop, uint16_t value) |
| Set control value of specified node. | |
| void | show (const std::string &nodeName) |
| Display control and status values of a node. | |
| void | showControl (const std::string &nodeName) |
| Display control value of given node. | |
| void | showStatus (const std::string &nodeName) |
| Display status value of given node. | |
| virtual | ~NodeRegisterManager () |
Public Attributes | |
| NodeRegisterMap | nodeRegisterMap |
Definition at line 12 of file NodeRegisterManager.h.
| typedef boost::unordered_map<std::string, NodeRegisters> NodeRegisterManager::NodeRegisterMap |
Definition at line 42 of file NodeRegisterManager.h.
| typedef NodeRegisterMap::iterator NodeRegisterManager::NodeRegisterMapIterator |
Definition at line 43 of file NodeRegisterManager.h.
| typedef boost::unordered_map<std::string, RegisterInfo> NodeRegisterManager::RegisterInfoMap |
Definition at line 33 of file NodeRegisterManager.h.
| typedef boost::shared_ptr<RegisterInfoMap> NodeRegisterManager::RegisterInfoMapPtr |
Definition at line 34 of file NodeRegisterManager.h.
Definition at line 10 of file NodeRegisterManager.cpp.
| NodeRegisterManager::~NodeRegisterManager | ( | ) | [virtual] |
Definition at line 14 of file NodeRegisterManager.cpp.
| void NodeRegisterManager::addNode | ( | const std::string & | nodeName, |
| const std::string & | xmlFile | ||
| ) |
Add a node to the node register.
| nodeName | string name of the node to add |
| xmlFile | xml file to load registers from |
Definition at line 27 of file NodeRegisterManager.cpp.
| NodeRegisterManager::RegisterInfo NodeRegisterManager::getControlInfo | ( | const std::string & | nodeName, |
| const std::string & | registerName | ||
| ) |
Get Control information about the passed register.
| nodeName | Name of the node that information is requested for |
| registerName | Name of the register that information is requested for |
| runtime_error | if the register name given is invalid, or a node name is invalid |
Definition at line 112 of file NodeRegisterManager.cpp.
| uint16_t NodeRegisterManager::getControlValue | ( | const std::string & | nodeName, |
| const std::string & | prop | ||
| ) |
Get control value of specified node.
| nodeName | Name of node to retrieve information from |
| prop | Property to return the value of (control) |
| runtime_error | if the property name or node name is invalid |
Definition at line 304 of file NodeRegisterManager.cpp.
| unsigned int NodeRegisterManager::getNodeCount | ( | ) |
Definition at line 65 of file NodeRegisterManager.cpp.
| std::string NodeRegisterManager::getNodeType | ( | const std::string & | nodeName | ) |
| nodeName | Name of the node to check for in the nodeRegisterMap |
Definition at line 87 of file NodeRegisterManager.cpp.
| NodeRegisterManager::RegisterInfo NodeRegisterManager::getStatusInfo | ( | const std::string & | nodeName, |
| const std::string & | registerName | ||
| ) |
Get Status information about the passed register.
| nodeName | Name of the node the information is requested for |
| registerName | Name of the register that information is requested for |
| runtime_error | if the register name given is invalid, or a node name is invalid |
Definition at line 152 of file NodeRegisterManager.cpp.
| uint16_t NodeRegisterManager::getStatusValue | ( | const std::string & | nodeName, |
| const std::string & | prop | ||
| ) |
Get status value of specified node.
| nodeName | Name of node to retrieve information from |
| prop | Property to return the value of (status) |
| runtime_error | if the property name or node name is invalid |
Definition at line 266 of file NodeRegisterManager.cpp.
| bool NodeRegisterManager::hasControlProperty | ( | const std::string & | nodeName, |
| const std::string & | prop | ||
| ) |
Check to see if node has certain control property.
| nodeName | Name of node to check |
| prop | Control Property that specified node is being checked for |
| runtime_error | if the node name is invalid |
Definition at line 192 of file NodeRegisterManager.cpp.
| bool NodeRegisterManager::hasNode | ( | const std::string & | nodeName | ) |
| nodeName | Name of the node to check for in the nodeRegisterMap |
Definition at line 76 of file NodeRegisterManager.cpp.
| bool NodeRegisterManager::hasStatusProperty | ( | const std::string & | nodeName, |
| const std::string & | prop | ||
| ) |
Check to see if node has certain status property.
| nodeName | Name of node to check |
| prop | Status Property that specified node is being checked for |
| runtime_error | if the node name is invalid |
Definition at line 229 of file NodeRegisterManager.cpp.
| void NodeRegisterManager::resetControlValues | ( | const std::string & | nodeName | ) |
Reset control values of a specified node.
| nodeName | Name of node to reset control values in |
| runtime_error | if the node name is invalid |
Definition at line 385 of file NodeRegisterManager.cpp.
| void NodeRegisterManager::setControlValue | ( | const std::string & | nodeName, |
| const std::string & | prop, | ||
| uint16_t | value | ||
| ) |
Set control value of specified node.
| nodeName | Name of node where the property will be set |
| prop | Property to edit with new value |
| value | New value to set the property to |
| runtime_error | if the property name or node name is invalid |
Definition at line 342 of file NodeRegisterManager.cpp.
| void NodeRegisterManager::show | ( | const std::string & | nodeName | ) |
Display control and status values of a node.
| nodeName | Name of node where from information is retrieved and displayed |
Definition at line 422 of file NodeRegisterManager.cpp.
| void NodeRegisterManager::showControl | ( | const std::string & | nodeName | ) |
Display control value of given node.
| nodeName | Name of node to retrieve information from |
Definition at line 469 of file NodeRegisterManager.cpp.
| void NodeRegisterManager::showStatus | ( | const std::string & | nodeName | ) |
Display status value of given node.
| nodeName | Name of node to retrieve information from |
Definition at line 443 of file NodeRegisterManager.cpp.
Definition at line 66 of file NodeRegisterManager.h.