MCS  0.3.3-alpha7
mcs::FITSWriter Class Reference

Write a fits file. More...

#include <mcs.hh>

+ Inheritance diagram for mcs::FITSWriter:

Public Member Functions

void close ()
 
void newAsciiTable (int nfields, string name="")
 
void newBinTable (Record &meta, string name="")
 
void newImage (Types bitpix, unsigned int naxis, unsigned int naxes, void *buf, string name="")
 
void newKeyword (string key, string value, string comment="")
 
void open (string fn, bool compressed=false)
 
void write (void *buf)
 
- Public Member Functions inherited from mcs::Record
void addField (Data *d)
 Wrapper around Dynamic_Array.push. More...
 
void addField (Data &d)
 Wrapper around Dynamic_Array.push. More...
 
void addField (string s, char tag=0)
 Push a new Data object with base type STRING in the array. More...
 
void addField (int i, char tag=0)
 Push a new Data object with base type INT in the array. More...
 
void addField (long long int i, char tag=0)
 Push a new Data object with base type BIGINT in the array. More...
 
void addField (double f, char tag=0)
 Push a new Data object with base type DOUBLE in the array. More...
 
string asString (string sep="\)
 Return record content as a unique string. More...
 
string asStringNames (string sep="\)
 
string asStringTypes (string sep="\)
 
void clear ()
 
int count ()
 Wrapper around Dynamic_Array.count. More...
 
void emptyName ()
 Set all Data object's name to an empty string. More...
 
Data field (string name)
 Returns the Data object in the vector whose name is "name". More...
 
Data field (int pos)
 
unsigned int objSize ()
 Return how many bytes require the object to be serialized. More...
 
Recordoperator= (Record &from)
 Assignment operator, will copy all data objects. More...
 
Dataoperator[] (string name)
 
Dataoperator[] (int pos)
 
Data pop (int x=0)
 
int posWhoseNameIs (string name, enum ThrowExceptions throwexc=THROW)
 Return the index of the first Data objects whose name is "name". More...
 
 Record (Record &from)
 Copy constructor, will copy all data objects. More...
 
 Record (bool synchro=false)
 Constructor, build an empty record. The parameter is passed to the underlying Dynamic_Array object. More...
 
 Record (void *lbuf, bool synchro=false)
 Build a Record object from a buffer prepared with Record.prepareBuffer(). More...
 
void setFieldMap (string s="")
 Creates a new field map from the given string. More...
 
void setFieldMap (Record &rec)
 Copy the field map from one record to another. More...
 
void setNull ()
 Set all Data object's name to null values. More...
 
 ~Record ()
 Destructor. More...
 
- Public Member Functions inherited from mcs::Serializable
void * getEntireBuffer (unsigned int &size)
 
bool knowSize ()
 Reinitialize internal data. More...
 
unsigned int maxChunkSize ()
 Return the max size allowed for a chunk. More...
 
unsigned int nChunk ()
 If knowSize() is true, return how many chunks are required to send all data. More...
 
void * nextChunk (unsigned int &chunksize)
 Fills a buffer with next chunk to be sent. More...
 
Serializableoperator= (const Serializable &)
 Declared to avoid using of default assignment operator. More...
 
 Serializable (const Serializable &)
 Declared to avoid using of default copy constructor. More...
 
 Serializable (unsigned int lmaxChunksize=16384)
 Constructor, for custom data (type = SERIAL_UNKNOWN). More...
 
 Serializable (void *from, unsigned int size, bool freeAfterUse, unsigned int lmaxChunksize=16384)
 Constructor, for memory buffers (type = SERIAL_BUFFER). More...
 
 Serializable (string filename, unsigned int lmaxChunksize=16384)
 Constructor, for files (type = SERIAL_FILENAME). More...
 
 Serializable (int type, unsigned int lmaxChunksize=16384)
 
unsigned int size ()
 If knowSize() is true, return the size of the entire block of data. More...
 
virtual ~Serializable ()
 Destructor. More...
 
- Public Member Functions inherited from mcs::Synchro
int count ()
 Return how many times the current thread has locked the section. More...
 
bool enter (int op=1, unsigned int timeout=0)
 Enter, or try to enter a critical section. More...
 
int leave ()
 Leave a critical section. More...
 
Synchrooperator= (const Synchro &)
 Declared to avoid using of default assignment operator. More...
 
 Synchro (const Synchro &)
 Declared to avoid using of default copy constructor. More...
 
 Synchro ()
 Constructor. More...
 
void synchronize (bool setactive)
 Enable or disable the synchronization feature. More...
 
bool tryenter (unsigned int timeout=0)
 Wrapper around enter(), using op=MCS_SYNCHRO_TRY_LOCK if the parameter is 0, op=MCS_SYNCHRO_TRY_TIMED otherwise. More...
 
 ~Synchro ()
 Destructor. More...
 

Private Attributes

void * fptr
 

Detailed Description

Write a fits file.

This class has yet to be implemented.

Definition at line 7911 of file mcs.hh.


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

mcslogo

MCS (My Customizable Server) ver. 0.3.3-alpha7
Documentation generated on Mon May 28 07:39:41 UTC 2018