#include <VrbClientRegistry.h>
|
| VrbClientRegistry (int id, VrbMessageSenderInterface *sender) |
| construct a registry access path to the controller More...
|
|
void | setID (int clID, const SessionID &session) |
| gets id from server More...
|
|
void | resubscribe (const SessionID &sessionID, const SessionID &oldSession=SessionID()) |
| unsubscribe all clases and variables from old session and subscribe to the new one (ignore sharedStates, they resubscribe them selves) More...
|
|
clientRegClass * | subscribeClass (const SessionID &sessionID, const std::string &clName, regClassObserver *ob) |
|
clientRegVar * | subscribeVar (const SessionID &sessionID, const std::string &cl, const std::string &var, covise::TokenBuffer &&value, regVarObserver *ob) |
|
void | unsubscribeClass (const SessionID &sessionID, const std::string &cl) |
|
void | unsubscribeVar (const std::string &cl, const std::string &var, bool unsubscribeServerOnly=false) |
|
void | createVar (const SessionID sessionID, const std::string &cl, const std::string &var, covise::TokenBuffer &value, bool isStatic=false) |
|
void | setVar (const SessionID sessionID, const std::string &cl, const std::string &var, covise::TokenBuffer &&val, bool muted=false) |
|
void | destroyVar (const SessionID sessionID, const std::string &cl, const std::string &var) |
|
clientRegClass * | getClass (const std::string &name) |
| returns the regClass with name or nullptr More...
|
|
void | update (covise::TokenBuffer &tb, int reason) |
|
virtual | ~VrbClientRegistry () |
|
void | sendMsg (covise::TokenBuffer &tb, covise::covise_msg_type type) |
|
int | getID () override |
|
SessionID | getSession () |
|
std::shared_ptr< clientRegClass > | createClass (const std::string &name, int id) override |
|
void | loadRegistry (std::ifstream &inFile) |
|
void | saveRegistry (std::ofstream &outFile) const |
|
construct a registry access path to the controller
vrb::VrbClientRegistry::~VrbClientRegistry |
( |
| ) |
|
|
virtual |
returns the regClass with name or nullptr
if a VRB connected, resend local variables and subscriptions.
int vrb::VrbClientRegistry::getID |
( |
| ) |
|
|
inlineoverridevirtual |
SessionID vrb::VrbClientRegistry::getSession |
( |
| ) |
|
|
inline |
unsubscribe all clases and variables from old session and subscribe to the new one (ignore sharedStates, they resubscribe them selves)
void vrb::VrbClientRegistry::setID |
( |
int |
clID, |
|
|
const SessionID & |
session |
|
) |
| |
Subscribe to all variables in a registry class
registry class observer cl to be attached for updates use clientID if id is not set
Unsubscribe from a registry cl (previously subscribed with subscribecl)
registry cl
void vrb::VrbClientRegistry::unsubscribeVar |
( |
const std::string & |
cl, |
|
|
const std::string & |
var, |
|
|
bool |
unsubscribeServerOnly = false |
|
) |
| |
int vrb::VrbClientRegistry::clientID = -1 |
|
private |
The documentation for this class was generated from the following files: