Changeset 11085 for trunk/FACT++/gui/FactGui.h
- Timestamp:
- 06/20/11 22:43:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11084 r11085 705 705 struct DimData 706 706 { 707 Time time; 708 int qos; 709 string name; 710 string format; 711 vector<char> data; 712 713 DimInfo *info; // this is ONLY for a fast check of the type of the DimData!! 707 const int qos; 708 const string name; 709 const string format; 710 const vector<char> data; 711 const Time time; 712 713 Time extract(DimInfo *inf) const 714 { 715 // Must be called in exactly this order! 716 const int tsec = inf->getTimestamp(); 717 const int tms = inf->getTimestampMillisecs(); 718 719 return Time(tsec, tms*1000); 720 } 721 722 // DimInfo *info; // this is ONLY for a fast check of the type of the DimData!! 714 723 715 724 DimData(DimInfo *inf) : … … 718 727 format(inf->getFormat()), 719 728 data(inf->getString(), inf->getString()+inf->getSize()), 720 info(inf) 721 { 722 // Must be called in exactly this order! 723 const int tsec = inf->getTimestamp(); 724 const int tms = inf->getTimestampMillisecs(); 725 726 time = Time(tsec, tms*1000); 729 time(extract(inf))/*, 730 info(inf)*/ 731 { 727 732 } 728 733 … … 736 741 const T &ref(uint32_t offset=0) const { return *reinterpret_cast<const T*>(data.data()+offset); } 737 742 738 vector<char> vec(int b) const { return vector<char>(data.begin()+b, data.end()); }739 string str(unsigned int b) const { return b>=data.size()?string():string(data.data()+b, data.size()-b); }743 // vector<char> vec(int b) const { return vector<char>(data.begin()+b, data.end()); } 744 // string str(unsigned int b) const { return b>=data.size()?string():string(data.data()+b, data.size()-b); } 740 745 const char *c_str() const { return (char*)data.data(); } 741 746 /* 742 747 vector<boost::any> any() const 743 748 { … … 745 750 conv.Print(); 746 751 return conv.GetAny(data.data(), data.size()); 747 } 752 }*/ 748 753 size_t size() const { return data.size(); } 749 754 };
Note:
See TracChangeset
for help on using the changeset viewer.