- Timestamp:
- 07/29/11 15:49:47 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Converter.cc
r11564 r11702 645 645 { 646 646 ostringstream err; 647 err << "Format description [fmt=" << fFormat << " ] exceeds available data size (" << size << ")";647 err << "Format description [fmt=" << fFormat << "|size=" << GetSize() << "] exceeds available data size (" << size << ")"; 648 648 throw runtime_error(err.str()); 649 649 } … … 685 685 { 686 686 ostringstream err; 687 err << "Data block size (" << size << ") doesn't fit format description [fmt=" << fFormat << " ]";687 err << "Data block size (" << size << ") doesn't fit format description [fmt=" << fFormat << "|size=" << GetSize() <<"]"; 688 688 throw runtime_error(err.str()); 689 689 } … … 916 916 { 917 917 ostringstream err; 918 err << "ToFits - Data block size (" << size << ") doesn't fit format description [fmt=" << fFormat << " ]";918 err << "ToFits - Data block size (" << size << ") doesn't fit format description [fmt=" << fFormat << "|size=" << GetSize() << "]"; 919 919 throw runtime_error(err.str()); 920 920 } -
trunk/FACT++/src/Converter.h
r11564 r11702 85 85 86 86 const FormatList &GetList() const { return fList; } 87 size_t GetSize() const { return fList.size()==0 ? 0 : fList.back().second.second; } 87 88 88 89 static FormatList Compile(std::ostream &out, const std::string &fmt, bool strict=false);
Note:
See TracChangeset
for help on using the changeset viewer.