1 #ifndef FACT_DimDescriptionService 2 #define FACT_DimDescriptionService 38 fServices.insert(getName());
46 fServices.insert(getName());
53 fServices.insert(getName());
60 fServices.erase(getName());
63 static const std::set<std::string> &
GetServices() {
return fServices; }
83 setData(&data,
sizeof(T));
89 setData(data.data(), data.size()*
sizeof(T));
92 template<
class T,
size_t N>
95 setData(data.data(), N*
sizeof(T));
98 void setTime(
const Time &
t);
102 int Update(
const Time &t);
103 int Update(
const std::string &
data);
104 int Update(
const char *data);
109 setData(&data,
sizeof(T));
120 template<
class T,
size_t N>
int Update(const std::array< T, N > &data)
DimDescribedService(const std::string &name, const char *format, const T &val, const char *desc)
static const std::set< std::string > & GetServices()
DimDescribedService(const std::string &name, const T &val, const char *desc)
void setData(const std::string &str)
Adds some functionality to boost::posix_time::ptime for our needs.
static DimService * fService
Counter to count the number of instatiations.
void setData(const std::vector< T > &data)
int Update(const T &data)
void setData(const std::array< T, N > &data)
void setData(const char *str)
A DimService which broadcasts descriptions for services and commands.
void setData(const T &data)
int Update(const std::vector< T > &data)
DimDescriptionService(const std::string &name, const std::string &format)
Local storage for the applied description.
void setData(const void *ptr, size_t sz)
std::string fDescription
Data to be distributed with the service.
void setData(void *data, int size)
virtual ~DimDescriptionService()
static std::set< std::string > fServices
static std::string fData
Pointer to the DimService distributing the desscriptions.
DimDescribedService(const std::string &name, const char *format, const char *desc)
std::string GetDescription() const