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.
|
|
void | removeByUUID (std::string uuid) |
| Remove node by uuid.
|
|
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()
◆ add() [1/2]
void Salsa::Node::add |
( |
std::shared_ptr< Node > | node | ) |
|
|
inline |
◆ add() [2/2]
void Salsa::Node::add |
( |
std::shared_ptr< Publisher > | pPublisher | ) |
|
|
inline |
◆ find()
std::shared_ptr< Node > Salsa::Node::find |
( |
std::string | name | ) |
const |
◆ hostname() [1/2]
std::string Salsa::Node::hostname |
( |
| ) |
const |
|
inline |
◆ hostname() [2/2]
void Salsa::Node::hostname |
( |
std::string | h | ) |
|
|
inline |
◆ json()
void Salsa::Node::json |
( |
Json::Value & | root | ) |
|
|
virtual |
◆ name() [1/2]
std::string Salsa::Node::name |
( |
| ) |
const |
|
inline |
◆ name() [2/2]
void Salsa::Node::name |
( |
std::string | n | ) |
|
|
inline |
◆ nodeInfo()
NodeInfo * Salsa::Node::nodeInfo |
( |
| ) |
const |
|
inline |
◆ nodes()
std::vector< std::shared_ptr< Node > > Salsa::Node::nodes |
( |
| ) |
const |
|
inline |
◆ parent() [1/2]
std::weak_ptr< Node > Salsa::Node::parent |
( |
| ) |
const |
|
inline |
◆ parent() [2/2]
void Salsa::Node::parent |
( |
std::weak_ptr< Node > | node | ) |
|
|
inline |
◆ print()
void Salsa::Node::print |
( |
| ) |
const |
|
virtual |
◆ publish()
void Salsa::Node::publish |
( |
| ) |
|
|
virtual |
Publish network status
Definition at line 140 of file Node.cc.
◆ publishers()
std::vector< std::shared_ptr< Publisher > > Salsa::Node::publishers |
( |
| ) |
const |
|
inline |
◆ 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.
◆ uuid() [1/2]
std::string Salsa::Node::uuid |
( |
| ) |
const |
|
inline |
◆ uuid() [2/2]
void Salsa::Node::uuid |
( |
std::string | uuid | ) |
|
|
inline |
◆ mChildNodes
std::vector<std::shared_ptr<Node> > Salsa::Node::mChildNodes = {} |
|
protected |
◆ mpNodeInfo
NodeInfo* Salsa::Node::mpNodeInfo {new NodeInfo()} |
|
protected |
Node Info.
Definition at line 72 of file Node.hh.
Referenced by hostname(), hostname(), name(), name(), Node(), nodeInfo(), print(), uuid(), uuid(), ~Node(), and Salsa::NodeZyre::~NodeZyre().
◆ mpParent
std::weak_ptr<Node> Salsa::Node::mpParent |
|
protected |
◆ mPublishers
std::vector<std::shared_ptr<Publisher> > Salsa::Node::mPublishers = {} |
|
protected |
The documentation for this class was generated from the following files: