Changeset 10877
- Timestamp:
- 05/27/11 17:26:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.h
r10545 r10877 71 71 std::vector<char> GetVector() const { return std::vector<char>(GetText(), GetText()+GetSize()); } 72 72 std::string GetString() const; 73 74 template<typename T> 75 T Get(int offset=0) const { return *reinterpret_cast<const T*>(GetText()+offset); } 76 77 template<typename T> 78 T *Ptr(int offset=0) const { return *reinterpret_cast<const T*>(GetData()+offset); } 73 79 }; 74 80
Note:
See TracChangeset
for help on using the changeset viewer.