Base Node class
More...
#include <Node.hh>
|
| Node (std::string name="", std::string uuid="") |
|
virtual | ~Node () |
|
virtual void | print () const |
|
virtual void | json (Json::Value &root) |
|
virtual void | publish () |
|
std::string | name () const |
| Returns node name.
|
|
std::string | uuid () const |
| Returns node UUID.
|
|
std::string | hostname () const |
| Returns node hostname.
|
|
std::weak_ptr< Node > | parent () const |
| Returns parent node.
|
|
std::vector< std::shared_ptr< Node > > | nodes () const |
| Returns nodes.
|
|
void | name (std::string n) |
| Sets node name.
|
|
void | uuid (std::string uuid) |
| Sets node uuid.
|
|
void | hostname (std::string h) |
| Sets node hostname.
|
|
void | parent (std::weak_ptr< Node > node) |
| Sets parent.
|
|
void | add (std::shared_ptr< Node > node) |
| Adds node to the list of nodes.
|
|
std::shared_ptr< Node > | find (std::string name) const |
| Find node by name. More...
|
|
void | removeByUUID (std::string uuid) |
| Remove node by uuid. More...
|
|
void | add (std::shared_ptr< Publisher > pPublisher) |
| Adds publisher to the node.
|
|
std::vector< std::shared_ptr< Publisher > > | publishers () const |
| Returns publishers.
|
|
NodeInfo * | nodeInfo () const |
| Returns Node Info.
|
|
◆ Node()
Salsa::Node::Node |
( |
std::string |
name = "" , |
|
|
std::string |
uuid = "" |
|
) |
| |
◆ ~Node()
◆ find()
std::shared_ptr< Node > Salsa::Node::find |
( |
std::string |
name | ) |
const |
◆ json()
void Salsa::Node::json |
( |
Json::Value & |
root | ) |
|
|
virtual |
◆ print()
void Salsa::Node::print |
( |
| ) |
const |
|
virtual |
◆ publish()
void Salsa::Node::publish |
( |
| ) |
|
|
virtual |
Publish network status
Definition at line 140 of file Node.cc.
◆ removeByUUID()
void Salsa::Node::removeByUUID |
( |
std::string |
uuid | ) |
|
Remove node by uuid.
Removes node by uuid
Definition at line 120 of file Node.cc.
References mChildNodes.
The documentation for this class was generated from the following files: