10 #ifndef __GROUPINFO_H__
11 #define __GROUPINFO_H__
16 #include <epicsTime.h>
19 #include "tools/ToolsConfig.h"
20 #include "tools/Guard.h"
21 #include "tools/FUX.h"
26 #include "engine/Named.h"
59 const stdList<class ArchiveChannel *>&
65 const epicsTime& when);
70 const epicsTime& when);
94 stdList<ArchiveChannel *> channels;
104 return disable_count <= 0;
108 return num_connected;
111 #endif //__GROUPINFO_H__
bool isEnabled(Guard &group_guard) const
Check if enable.
Definition: GroupInfo.h:103
const stdList< class ArchiveChannel * > & getChannels(Guard &group_guard) const
Return current list of group members.
A mutex with informational name and lock order.
Definition: OrderedMutex.h:34
A named thingy.
Definition: Named.h:28
void addToFUX(Guard &group_guard, FUX::Element *doc)
Append this group to a FUX document.
OrderedMutex & getMutex()
Guardable interface.
Definition: GroupInfo.h:99
size_t getNumConnected(Guard &group_guard) const
Definition: GroupInfo.h:107
void decConnected(Guard &group_guard, ArchiveChannel &pv)
Invoked by ArchiveChannel to update connection count.
Automatically takes and releases an epicsMutex.
Definition: Guard.h:63
void enable(Guard &group_guard, ArchiveChannel *cause, const epicsTime &when)
Enable all channels of this group.
void incConnected(Guard &group_guard, ArchiveChannel &pv)
Invoked by ArchiveChannel to update connection count.
Interface for something that can be protected by a Guard.
Definition: Guard.h:49
One archived channel.
Definition: ArchiveChannel.h:19
virtual ~GroupInfo()
Destructor.
void addChannel(Guard &group_guard, ArchiveChannel *channel)
Add channel to this group.
One element in the FUX tree.
Definition: FUX.h:51
void disable(Guard &group_guard, ArchiveChannel *cause, const epicsTime &when)
Disable all channels of this group.
A Group of channels.
Definition: GroupInfo.h:42
GroupInfo(const std::string &name)
Constructor.