TINC
Toolkit for Interactive Computation
|
Interface to define objects for a TINC network. More...
#include <IdObject.hpp>
Public Member Functions | |
std::string | getId () |
get this object's id More... | |
void | setId (std::string id) |
set this object's id More... | |
std::string | getDocumentation () const |
void | setDocumentation (const std::string &documentation) |
Public Attributes | |
std::function< void(al::Socket *src)> | modified = [](al::Socket * ) {} |
Protected Attributes | |
std::string | mId |
std::string | mDocumentation |
Interface to define objects for a TINC network.
All objects that can be shared over the network using TINC, must have an id, documentation and provide a function to mark them as modified.
Definition at line 50 of file IdObject.hpp.
std::string tinc::IdObject::getDocumentation | ( | ) | const |
std::string tinc::IdObject::getId | ( | ) |
get this object's id
void tinc::IdObject::setDocumentation | ( | const std::string & | documentation | ) |
void tinc::IdObject::setId | ( | std::string | id | ) |
set this object's id
|
protected |
Definition at line 69 of file IdObject.hpp.
|
protected |
Definition at line 68 of file IdObject.hpp.
std::function<void(al::Socket *src)> tinc::IdObject::modified = [](al::Socket * ) {} |
Definition at line 65 of file IdObject.hpp.