COVISE Core
|
#include <regClass.h>
Public Member Functions | |
void | sendMsg (covise::TokenBuffer &tb, covise::covise_msg_type type) |
clientRegClass (const std::string &n, int ID, VrbClientRegistry *reg) | |
regClassObserver * | getLocalObserver () |
void | attach (regClassObserver *ob) |
attach a observer to the regClass More... | |
int | getLastEditor () |
void | setLastEditor (int lastEditor) |
void | notifyLocalObserver () |
void | resubscribe (const SessionID &sessionID) |
void | subscribe (regClassObserver *obs, const SessionID &sessionID) |
VariableMap & | getAllVariables () |
std::shared_ptr< clientRegVar > | createVar (const std::string &name, covise::TokenBuffer &&value) override |
Public Member Functions inherited from vrb::regClass< clientRegVar > | |
regClass (const std::string &n, int ID) | |
int | getID () |
get Class ID More... | |
void | setID (int id) |
const std::string & | getName () |
void | append (clientRegVar *var) |
creates a a regvar entry in the map More... | |
clientRegVar * | getVar (const std::string &n) |
getVariableEntry, returns NULL if not found More... | |
void | deleteVar (const std::string &n) |
remove a Variable More... | |
void | deleteAllNonStaticVars () |
remove some Variables More... | |
bool | isDeleted () |
void | setDeleted (bool isdeleted=true) |
void | writeClass (std::ofstream &file) |
write the classname and all variables in a .vrbreg file More... | |
void | readVar (std::ifstream &file) |
reads the name and value out of stream, return false if class has no variable More... | |
~regClass () | |
Private Attributes | |
regClassObserver * | _observer = nullptr |
int | lastEditor |
VrbClientRegistry * | registry |
Additional Inherited Members | |
Public Types inherited from vrb::regClass< clientRegVar > | |
typedef std::map< const std::string, std::shared_ptr < clientRegVar > > | VariableMap |
Protected Attributes inherited from vrb::regClass< clientRegVar > | |
std::string | name |
int | classID |
bool | isDel |
VariableMap | myVariables |
vrb::clientRegClass::clientRegClass | ( | const std::string & | n, |
int | ID, | ||
VrbClientRegistry * | reg | ||
) |
|
inline |
attach a observer to the regClass
|
overridevirtual |
Implements vrb::regClass< clientRegVar >.
clientRegClass::VariableMap & vrb::clientRegClass::getAllVariables | ( | ) |
|
inline |
|
inline |
void vrb::clientRegClass::notifyLocalObserver | ( | ) |
void vrb::clientRegClass::sendMsg | ( | covise::TokenBuffer & | tb, |
covise::covise_msg_type | type | ||
) |
void vrb::clientRegClass::setLastEditor | ( | int | lastEditor | ) |
void vrb::clientRegClass::subscribe | ( | regClassObserver * | obs, |
const SessionID & | sessionID | ||
) |
|
private |
|
private |
|
private |