Changeset 10452 for trunk/FACT++/src


Ignore:
Timestamp:
04/22/11 19:34:22 (14 years ago)
Author:
tbretz
Message:
Added DimDescribedService; a described service which ensures that the description is available before the service itself, as needed by the data logger.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DimDescriptionService.h

    r10317 r10452  
    2121};
    2222
     23#include "dis.hxx"
     24
     25class DimDescribedService : public DimDescriptionService, public DimService
     26{
     27public:
     28    template<typename T>
     29        DimDescribedService(const char *name, T &val, const char *desc)
     30        : DimDescriptionService(name, desc), DimService(name, val)
     31    {
     32    }
     33
     34    DimDescribedService(const char *name, const char *val, const char *desc)
     35        : DimDescriptionService(name, desc), DimService(name, const_cast<char*>(val)) { }
     36
     37    DimDescribedService(const char *name, const char *format, void *structure, int size, const char *desc)
     38        : DimDescriptionService(name, desc), DimService(name, format, structure, size)
     39    {
     40        // FIXME: compare number of ; with number of |
     41    }
     42};
     43
     44
    2345#endif
Note: See TracChangeset for help on using the changeset viewer.