FACT++  1.0
template<typename T >
T fits::Table::Get ( const std::string &  key) const
inline

Definition at line 419 of file fits.h.

References ___err___, gLog, and str.

Referenced by fits::Constructor(), fits::Get(), zfits::GetBytesPerRow(), fits::GetBytesPerRow(), fits::GetFloat(), fits::GetInt(), zfits::GetNumRows(), fits::GetNumRows(), fits::GetStr(), and fits::GetUInt().

420  {
421  const Keys::const_iterator it = keys.find(key);
422  if (it==keys.end())
423  {
424  std::ostringstream str;
425  str << "Key '" << key << "' not found.";
426 #ifdef __EXCEPTIONS
427  throw std::runtime_error(str.str());
428 #else
429  gLog << ___err___ << "ERROR - " << str.str() << std::endl;
430  return T();
431 #endif
432  }
433  return it->second.Get<T>();
434  }
char str[80]
Definition: test_client.c:7
#define gLog
Definition: fits.h:36
#define ___err___
Definition: fits.h:37
Keys keys
Definition: fits.h:118

+ Here is the caller graph for this function: