|
SoDaRadio-5.0.3-master:8901fb5
|
#include <SoDaBase.hxx>
Public Member Functions | |
| SoDaBase (const std::string &oname) | |
| The constructor – pass a name for the object. More... | |
| std::string & | getObjName () |
| get the name of this object More... | |
| SoDaBase * | findSoDaObject (const std::string &oname) |
| find a SoDa Object by name. More... | |
| double | getTime () |
| Get a time stamp in nS resolution that monotonically increases and that is very inexpensive (typically < 100nS). More... | |
Private Attributes | |
| std::string | objname |
| the name of the object More... | |
Static Private Attributes | |
| static bool | first_time = true |
| have we seen the first call to getTime? More... | |
| static double | base_first_time |
| time of first call to getTime from anyone. More... | |
| static std::map< std::string, SoDaBase *> | ObjectDirectory |
| a class member – directory of all registered objects. More... | |
The SoDa Base class.
All persistent soda objects of any size are given a NAME so that the SoDaException class can show who is complaining for a given exception.
Definition at line 167 of file SoDaBase.hxx.
| SoDa::SoDaBase::SoDaBase | ( | const std::string & | oname | ) |
The constructor – pass a name for the object.
| oname | The name of the object. Uniqueness is helpful, but not necessary. The first object with a given name will be entered into the directory Objects can be retrieved from the directory by name with the findSoDaObject function. |
Definition at line 37 of file SoDaBase.cxx.
References ObjectDirectory, and objname.
| SoDaBase * SoDa::SoDaBase::findSoDaObject | ( | const std::string & | oname | ) |
find a SoDa Object by name.
| oname | a string that names the object |
Definition at line 45 of file SoDaBase.cxx.
References ObjectDirectory.
|
inline |
get the name of this object
Definition at line 182 of file SoDaBase.hxx.
Referenced by SoDa::BaseBandRX::execGetCommand(), SoDa::USRPCtrl::USRPCtrl(), SoDa::AudioPA::wakeIn(), and SoDa::AudioALSA::wakeIn().
| double SoDa::SoDaBase::getTime | ( | ) |
Get a time stamp in nS resolution that monotonically increases and that is very inexpensive (typically < 100nS).
Definition at line 56 of file SoDaBase.cxx.
References base_first_time, and first_time.
|
staticprivate |
time of first call to getTime from anyone.
Definition at line 204 of file SoDaBase.hxx.
Referenced by getTime().
|
staticprivate |
have we seen the first call to getTime?
Definition at line 203 of file SoDaBase.hxx.
Referenced by getTime().
|
staticprivate |
a class member – directory of all registered objects.
Definition at line 206 of file SoDaBase.hxx.
Referenced by findSoDaObject(), and SoDaBase().
|
private |
1.8.13