Changeset 11135
- Timestamp:
- 06/23/11 15:56:29 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimDescriptionService.h
r10632 r11135 3 3 4 4 #include <string> 5 #include <vector> 5 6 6 7 class DimService; … … 22 23 23 24 #include "dis.hxx" 24 25 #include <iostream> 25 26 class DimDescribedService : public DimDescriptionService, public DimService 26 27 { … … 43 44 // FIXME: compare number of ; with number of | 44 45 } 46 47 template<class T> 48 void Update(const T &data) 49 { 50 //cout << "Update: " << svc.getName() << " (" << sizeof(T) << ")" << endl; 51 setData(const_cast<T*>(&data), sizeof(T)); 52 updateService(); 53 } 54 55 template<typename T> 56 void Update(const std::vector<T> &data) 57 { 58 std::cout << "Update: " << getName() << " " << data.size() << " " << sizeof(T) << std::endl; 59 setData(const_cast<T*>(data.data()), data.size()*sizeof(T)); 60 updateService(); 61 } 62 63 // FIXME: Implement callback with boost::function instead of Pointer to this 64 45 65 }; 46 66
Note:
See TracChangeset
for help on using the changeset viewer.