FACT++  1.0
fits Class Reference

#include <fits.h>

+ Inheritance diagram for fits:
+ Collaboration diagram for fits:

Classes

struct  Entry
 
struct  Table
 

Public Types

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
 

Public Member Functions

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 ()
 
virtual void StageRow (size_t row, char *dest)
 
virtual void WriteRowToCopyFile (size_t row)
 
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)
 
virtual bool SkipNextRow ()
 
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
 
virtual bool IsFileOk () const
 
bool IsCompressedFITS () const
 
virtual size_t GetNumRows () const
 
virtual size_t GetBytesPerRow () 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)
 

Static Public Member Functions

static bool Compare (const Address &p1, const Address &p2)
 

Protected Member Functions

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

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

Definition at line 54 of file fits.h.


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