- Timestamp:
- 09/05/11 16:25:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/fits.h
r11905 r11964 227 227 const string id = Get<string>("TTYPE"+num.str()); 228 228 const string fmt = Get<string>("TFORM"+num.str()); 229 const string unit = Get<string>("TUNIT"+num.str() );229 const string unit = Get<string>("TUNIT"+num.str(), ""); 230 230 231 231 istringstream sin(fmt); … … 359 359 } 360 360 361 // Values of keys are always signed 362 template<typename T> 363 T Get(const string &key, const string &deflt) const 364 { 365 const map<string,Entry>::const_iterator it = keys.find(key); 366 return it==keys.end() ? deflt :it->second.Get<T>(); 367 } 368 361 369 size_t GetN(const string &key) const 362 370 { … … 641 649 } 642 650 651 template<typename T> 652 T Get(const string &key, const string &deflt) const 653 { 654 return fTable.Get<T>(key, deflt); 655 } 656 643 657 bool SetPtrAddress(const string &name, void *ptr) 644 658 {
Note:
See TracChangeset
for help on using the changeset viewer.