Changeset 10449
- Timestamp:
- 04/21/11 21:39:52 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Converter.cc
r10425 r10449 220 220 221 221 if (line.peek()=='x') 222 { 223 line >> c; 222 224 line >> hex; 225 } 223 226 else 224 227 line >> oct; 225 228 229 } 230 else 231 { 226 232 line.unget(); 227 }228 229 line.unget(); 233 line >> dec; 234 } 235 230 236 231 237 T val; … … 904 910 905 911 906 907 908 909 910 911 912 void Converter::Print(std::ostream &out) const 913 { 914 for (FormatList::const_iterator i=fList.begin(); i!=fList.end(); i++) 915 { 916 out << "Type=" << i->first.first->name() << "[" << i->first.second << "] "; 917 out << "N=" << i->second.first << " "; 918 out << "offset=" << i->second.second << endl; 919 } 920 } 921 922 void Converter::Print() const 923 { 924 return Print(cout); 925 } 926 927 928 929 930 931 932 -
trunk/FACT++/src/Converter.h
r10444 r10449 132 132 } 133 133 134 void Print(std::ostream &out) const; 135 void Print() const; 136 134 137 static std::vector<std::string> Regex(const std::string &expr, const std::string &line); 135 138 };
Note:
See TracChangeset
for help on using the changeset viewer.