1 #ifndef EA4_CHAN_REGISTRY_H
2 #define EA4_CHAN_REGISTRY_H
80 std::map<std::string, CtrlInfo> ctrlInfos;
83 std::map<std::string, ChanInfo> chanInfos;
void setCtrlInfo(const char *chName, const CtrlInfo &info)
Sets the control info for the specified channel.
unsigned short dbr_count
DBR count (1 - scalar, >1 - waveform)
Definition: ChanRegistry.h:27
double period
Estimated periodicity of the channel.
Definition: ChanRegistry.h:30
int nChunks
Max number of chunks in the buffer.
Definition: ChanRegistry.h:36
static ChanRegistry * getInstance()
Returns a singleton.
Meta-information for values: Units, limits, etc .
Definition: CtrlInfo.h:75
int nSamples
Max number of samples in the chunk.
Definition: ChanRegistry.h:33
void setChanInfo(const char *chName, const ChanInfo &info)
Sets the channel info for the specified channel.
bool containsCtrlInfo(const char *chName) const
Checks if the specified channel is registered.
Container with the meta-information, including type.
Definition: ChanRegistry.h:14
const ChanInfo & getChanInfo(const char *chName) const
Returns the channel info for the specified channel.
bool containsChanInfo(const char *chName) const
Checks if the specified channel is registered.
const CtrlInfo & getCtrlInfo(const char *chName) const
Returns the control info for the specified channel.
Memory-resident registry of the channel infos.
Definition: ChanRegistry.h:42
unsigned short dbr_type
DBR type (see db_access.h)
Definition: ChanRegistry.h:24
void setType(unsigned short dbr_type, unsigned short dbr_count)
Sets the data type of this channel.