Changeset 15168
- Timestamp:
- 03/27/13 16:23:11 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimDescriptionService.cc
r13257 r15168 44 44 int DimDescriptionService::fCount = 0; 45 45 std::string DimDescriptionService::fData = ""; 46 47 set<string> DimDescribedService::fServices; 46 48 47 49 // -------------------------------------------------------------------------- -
trunk/FACT++/src/DimDescriptionService.h
r14488 r15168 2 2 #define FACT_DimDescriptionService 3 3 4 #include <set> 4 5 #include <array> 5 6 #include <string> … … 28 29 class DimDescribedService : public DimDescriptionService, public DimService 29 30 { 31 static std::set<std::string> fServices; 32 30 33 public: 31 34 template<typename T> … … 33 36 : DimDescriptionService(name.c_str(), desc), DimService(name.c_str(), const_cast<T&>(val)) 34 37 { 38 fServices.insert(getName()); 35 39 setQuality(0); 36 40 } … … 40 44 : DimDescriptionService(name.c_str(), desc), DimService(name.c_str(), format, const_cast<T*>(&val), sizeof(T)) 41 45 { 46 fServices.insert(getName()); 42 47 setQuality(0); 43 48 } … … 46 51 : DimDescriptionService(name.c_str(), desc), DimService(name.c_str(), format, (void*)NULL, 0) 47 52 { 53 fServices.insert(getName()); 48 54 setQuality(0); 49 55 // FIXME: compare number of ; with number of | 50 56 } 57 58 ~DimDescribedService() 59 { 60 fServices.erase(getName()); 61 } 62 63 static const std::set<std::string> &GetServices() { return fServices; } 51 64 52 65 void setData(const void *ptr, size_t sz)
Note:
See TracChangeset
for help on using the changeset viewer.