|
bool | ActivateConnections (double tmout, bool sync=true) |
|
ApplicationRef | app () |
|
bool | CleanupApplication () |
| Method safely deletes all object created for application - modules, devices, memory pools. More...
|
|
std::string | ComposeAddress (const std::string &server, const std::string &itemname="") |
|
ConnectionRequest | Connect (const std::string &port1, const std::string &port2) |
| Request connection between two ports. More...
|
|
void * | CreateAny (const std::string &classname, const std::string &objname="") |
|
bool | CreateApplication (const std::string &classname="", const std::string &appthrd="") |
|
bool | CreateControl (bool withserver, int serv_port=0, bool allow_clients=true) |
| Create command channel Parameter withserver defines if server socket will be created, which accepts client connections Optionally one can provide port number for server socket. More...
|
|
bool | CreateDevice (const std::string &classname, const std::string &devname) |
|
bool | CreateMemoryPool (const std::string &poolname, unsigned buffersize=0, unsigned numbuffers=0) |
| Generic method to create memory pool. More...
|
|
ModuleRef | CreateModule (const std::string &classname, const std::string &modulename, const std::string &thrdname="") |
|
Reference | CreateObject (const std::string &classname, const std::string &objname) |
|
bool | CreatePublisher () |
| Create publisher, which manage all published hierarchies. More...
|
|
ThreadRef | CreateThread (const std::string &thrdname, const std::string &classname="", const std::string &devname="") |
|
bool | CreateTransport (const std::string &portname, const std::string &transportkind="", const std::string &thrdname="") |
|
ThreadRef | CurrentThread () |
| Returns reference on the thread, which is now active. More...
|
|
bool | DecomposeAddress (const std::string &url, bool &islocal, std::string &server, std::string &itemtname) |
|
bool | DeleteDevice (const std::string &devname) |
|
bool | DeleteModule (const std::string &name) |
|
bool | DeletePool (const std::string &name) |
|
WorkerRef | FindDevice (const std::string &name) |
|
Reference | FindItem (const std::string &name) |
|
ModuleRef | FindModule (const std::string &name) |
|
Parameter | FindPar (const std::string &parname) |
|
Reference | FindPool (const std::string &name) |
|
Reference | FindPort (const std::string &port) |
|
ThreadRef | FindThread (const std::string &name, const std::string &required_class="") |
|
WorkerRef | GetCommandChannel () |
|
std::string | GetLocalAddress () |
| Return identifier of local host, which can be used everywhere for node addressing. More...
|
|
std::string | GetNodeAddress (int nodeid) |
|
ThreadsLayout | GetThreadsLayout () const |
|
bool | IsTerminated () const |
|
int | NodeId () const |
|
int | NumNodes () const |
|
unsigned | NumThreads () const |
|
void | RunCmdLoop (double runtime=0., const std::string &remnode="") |
| Run manager command loop. More...
|
|
void | RunMainLoop (double runtime=0.) |
| Run manager main loop. More...
|
|
void | Sleep (double tmout, const char *prefix=0) |
| Sleep for specified time, keep thread event loop running See Manager::Sleep() method for more details. More...
|
|
bool | StartAllModules () |
|
void | StartModule (const std::string &modulename) |
|
bool | StopAllModules () |
|
void | StopApplication () |
|
void | StopModule (const std::string &modulename) |
|
bool | CanSubmitCommand () const |
| Returns true if command can be submitted to the worker. More...
|
|
RecordField | Cfg (const std::string &name, Command cmd=nullptr) const |
| Returns configuration record of specified name. More...
|
|
bool | Execute (Command cmd, double tmout=-1.) |
|
bool | Execute (const std::string &cmd, double tmout=-1.) |
|
bool | FireEvent (const EventId &ev) |
|
bool | FireEvent (uint16_t evid, uint32_t arg) |
|
bool | HasThread () const |
| Returns true when thread is assigned to the worker. More...
|
|
bool | IsSameThread (const WorkerRef &ref) |
| Returns true if two workers share same thread. More...
|
|
bool | MakeThreadForWorker (const std::string &thrdname="") |
|
Parameter | Par (const std::string &name) const |
| Returns reference on parameter. More...
|
|
bool | Submit (Command cmd) |
|
bool | SyncWorker (double tmout=-1.) |
| Synchronize worker with caller thread. More...
|
|
ThreadRef | thread () |
|
std::string | ThreadName () const |
| Returns thread name of worker assigned. More...
|
|
bool | AddChild (Object *obj) |
| Add child to list of object children. More...
|
|
const char * | ClassName () const |
| Return class name of referenced object, if object not assigned, returns "---". More...
|
|
void | Destroy () throw () |
| Release reference and starts destroyment of referenced object. More...
|
|
Reference | FindChild (const char *name) const |
| Searches for child in referenced object. More...
|
|
bool | GetAllChildRef (ReferencesVector *vect) const |
| Return references for all childs. More...
|
|
Reference | GetChild (unsigned n) const |
| Return reference on child n. More...
|
|
Reference | GetFolder (const std::string &name, bool force=false) throw () |
| Return folder of specified name, no special symbols are allowed. More...
|
|
const char * | GetName () const |
| Return name of referenced object, if object not assigned, returns "---". More...
|
|
Object * | GetObject () const |
| Return pointer on the object. More...
|
|
Object * | GetParent () const |
| Returns pointer on parent object. More...
|
|
Reference | GetParentRef () const |
| Returns reference on parent object. More...
|
|
bool | IsName (const char *name) const |
| Returns true if object name is the same as specified one. More...
|
|
std::string | ItemName (bool compact=true) const |
| Produce string, which can be used as name argument in dabc::mgr.FindItem(name) call. More...
|
|
bool | null () const |
| Returns true if reference contains nullptr. More...
|
|
unsigned | NumChilds () const |
| Return number of childs in referenced object. More...
|
|
unsigned | NumReferences () const |
| Returns number of references on the object. More...
|
|
bool | operator! () const |
| Returns true if reference contains nullptr. More...
|
|
bool | operator!= (const Reference &src) const |
| Compare operator - return true if references refer to different object. More...
|
|
bool | operator!= (Object *obj) const |
| Compare operator - return true if reference refer to different objects. More...
|
|
Object * | operator() () const |
| Return pointer on the object. More...
|
|
Reference & | operator<< (Reference &src) throw () |
| Move operator - reference moved from source to target. More...
|
|
Reference & | operator= (const Reference &src) throw () |
| Assignment operator - copy reference. More...
|
|
Reference & | operator= (Object *obj) throw () |
| Assignment operator - copy reference. More...
|
|
bool | operator== (const Reference &src) const |
| Compare operator - return true if references refer to same object. More...
|
|
bool | operator== (Object *obj) const |
| Compare operator - return true if reference refer to same object. More...
|
|
void | Print (int lvl=0, const char *from=0) const |
| Show on debug output content of reference. More...
|
|
| Reference (const Reference &src) throw () |
| Copy constructor, if source is transient than source reference will be emptied. More...
|
|
| Reference (Object *obj=nullptr) |
| Constructor, creates reference on the object. More...
|
|
std::string | RelativeName (const dabc::Reference &topitem) |
| Produce name, which can be used to find item, calling topitem.FindChild(). More...
|
|
void | Release () throw () |
| Releases reference on the object. More...
|
|
bool | RemoveChild (const char *name, bool cleanup=true) |
| Remove child with given name and return reference on that child. More...
|
|
bool | RemoveChilds (bool cleanup=true) |
| Remove all childs in referenced object If cleanup true (default) and object is owner, all objects will be destroyed. More...
|
|
void | SetAutoDestroy (bool on=true) |
| Set autodestroy flag for the object Once enabled, object will be destroyed when last reference will be cleared. More...
|
|
void | SetObject (Object *obj, bool withmutex=true) |
| Direct set of object to reference. More...
|
|
Reference | Take () |
| Copy reference to output object. More...
|
|
virtual | ~Reference () |
| Destructor, releases reference on the object. More...
|
|
Reference on manager object
Should be used as thread-safe interface to manager functionality. Instance of ManagerRef is available via dabc::mgr variable.
Definition at line 560 of file Manager.h.