FACT++  1.0
FitsDumper Class Reference

Dumps contents of fits tables to stdout or a file. More...

+ Inheritance diagram for FitsDumper:
+ Collaboration diagram for FitsDumper:

Public Member Functions

 FitsDumper (const string &fname, const string &tablename)
 
int Exec (Configuration &conf)
 Configures the fitsLoader from the config file and/or command arguments. More...
 
- Public Member Functions inherited from factfits
 factfits (const std::string &fname, const std::string &tableName="", bool force=false)
 
 factfits (const std::string &fname, const std::string &fout, const std::string &tableName, bool force=false)
 
const std::vector< int16_t > & GetOffsetCalibration () const
 
- Public Member Functions inherited from zfits
 zfits (const std::string &fname, const std::string &tableName="", bool force=false)
 
 zfits (const std::string &fname, const std::string &fout, const std::string &tableName, bool force=false)
 
bool SkipNextRow ()
 
virtual bool IsFileOk () const
 
size_t GetNumRows () const
 
size_t GetBytesPerRow () const
 
- Public Member Functions inherited from fits
void Exception (const std::string &txt)
 
 fits (const std::string &fname, const std::string &tableName="", bool force=false)
 
 fits (const std::string &fname, const std::string &fout, const std::string &tableName, bool force=false)
 
 fits ()
 
 ~fits ()
 
void ZeroBufferForChecksum (std::vector< char > &vec, const uint64_t extraZeros=0)
 
uint8_t ReadRow (size_t row)
 
template<size_t N>
void revcpy (char *dest, const char *src, const int &num)
 
virtual void MoveColumnDataToUserSpace (char *dest, const char *src, const Table::Column &c)
 
virtual bool GetRow (size_t row, bool check=true)
 
bool GetNextRow (bool check=true)
 
template<class T , class S >
const T & GetAs (const std::string &name)
 
void EnableAddressExceptions (bool b=true)
 
void DisableAddressExceptions ()
 
void * SetPtrAddress (const std::string &name)
 
template<typename T >
bool SetPtrAddress (const std::string &name, T *ptr, size_t cnt)
 
template<class T >
bool SetRefAddress (const std::string &name, T &ptr)
 
template<typename T >
bool SetVecAddress (const std::string &name, std::vector< T > &vec)
 
template<typename T >
Get (const std::string &key) const
 
template<typename T >
Get (const std::string &key, const std::string &deflt) const
 
bool SetPtrAddress (const std::string &name, void *ptr, size_t cnt=0)
 
bool HasKey (const std::string &key) const
 
bool HasColumn (const std::string &col) const
 
const Table::ColumnsGetColumns () const
 
const Table::SortedColumnsGetSortedColumns () const
 
const Table::KeysGetKeys () const
 
int64_t GetInt (const std::string &key) const
 
uint64_t GetUInt (const std::string &key) const
 
double GetFloat (const std::string &key) const
 
std::string GetStr (const std::string &key) const
 
size_t GetN (const std::string &key) const
 
size_t GetRow () const
 
 operator bool () const
 
void PrintKeys (bool all_keys=false) const
 
void PrintColumns () const
 
bool IsHeaderOk () const
 
bool IsCompressedFITS () const
 
const std::vector< std::string > & GetTables () const
 
- Public Member Functions inherited from izstream
 izstream ()
 
 izstream (const char *name)
 
 ~izstream ()
 
int is_open ()
 
void open (const char *name)
 
void close ()
 
std::streambuf::pos_type seekoff (std::streambuf::off_type offset, std::ios_base::seekdir dir, std::ios_base::openmode=std::ios_base::in)
 
std::streambuf::pos_type seekpos (std::streambuf::pos_type pos, std::ios_base::openmode=std::ios_base::in)
 

Private Member Functions

string ValueTypeToStr (char type) const
 
void List ()
 Lists all columns of an open file. More...
 
void ListFileContent () const
 
void ListHeader (const string &filename)
 
void ListKeywords (ostream &)
 
vector< MyColumnInitColumns (vector< string > list)
 
vector< MyColumnInitColumnsRoot (vector< string > &list)
 
double GetDouble (const MyColumn &, size_t) const
 
int64_t GetInteger (const MyColumn &, size_t) const
 
string Format (const string &fmt, const double &val) const
 
string Format (const string &fmt, const MyColumn &, size_t) const
 
void Dump (ostream &, const vector< string > &, const vector< MyColumn > &, const string &, size_t, size_t, const string &)
 Display the selected columns values VS time. More...
 
void DumpRoot (ostream &, const vector< string > &, const string &, size_t, size_t, const string &)
 
void DumpMinMax (ostream &, const vector< MyColumn > &, size_t, size_t, bool)
 
void DumpStats (ostream &, const vector< MyColumn > &, const string &, size_t, size_t)
 

Private Attributes

string fFilename
 

Additional Inherited Members

- Public Types inherited from fits
enum  Compression_t { kCompUnknown, kCompFACT }
 
enum  fitsstate { throwbit = 8 }
 
typedef std::pair< void *, Table::ColumnAddress
 
typedef std::vector< AddressAddresses
 
typedef std::unordered_map< std::string, void * > Pointers
 
- Static Public Member Functions inherited from fits
static bool Compare (const Address &p1, const Address &p2)
 
- Protected Member Functions inherited from fits
bool ReadBlock (std::vector< std::string > &vec)
 
std::string Compile (const std::string &key, int16_t i=-1) const
 
void Constructor (const std::string &fname, std::string fout="", const std::string &tableName="", bool force=false)
 
- Protected Attributes inherited from fits
std::ofstream fCopy
 
std::vector< std::string > fListOfTables
 
Table fTable
 
Addresses fAddresses
 
Pointers fPointers
 
std::vector< std::vector< char > > fGarbage
 
std::vector< char > fBufferRow
 
std::vector< char > fBufferDat
 
size_t fRow
 
Checksum fChkHeader
 
Checksum fChkData
 

Detailed Description

Dumps contents of fits tables to stdout or a file.

Definition at line 64 of file fitsdump.cc.


The documentation for this class was generated from the following file: