FACT++  1.0
virtual bool zofits::WriteTableHeader ( const char *  name = "DATA")
inlinevirtual

write the header of the binary table

Parameters
namethe name of the table to be created
Returns
the state of the file

Reimplemented from ofits.

Reimplemented in factofits.

Definition at line 165 of file zofits.h.

References ofits::WriteTableHeader().

Referenced by factofits::WriteTableHeader().

166  {
168 
169  SetInt("ZNAXIS1", fRealRowWidth);
170 
172 
173  fCompressionQueues.front().setPromptExecution(fNumQueues==0);
174  fWriteToDiskQueue.setPromptExecution(fNumQueues==0);
175 
176  if (fNumQueues != 0)
177  {
178  //start the compression queues
179  for (auto it=fCompressionQueues.begin(); it!= fCompressionQueues.end(); it++)
180  it->start();
181 
182  //start the disk writer
183  fWriteToDiskQueue.start();
184  }
185 
186  //mark that no tile has been written so far
187  fLatestWrittenTile = -1;
188 
189  //no wiring error (in the writing of the data) has occured so far
190  fErrno = 0;
191 
192  return good();
193  }
int32_t fNumQueues
Current number of threads that will be used by this object.
Definition: zofits.h:969
bool SetInt(const std::string &key, int64_t i, const std::string &comment="")
Definition: ofits.h:535
std::vector< Queue< CompressionTarget > > fCompressionQueues
Processing queues (=threads)
Definition: zofits.h:973
Queue< WriteTarget, QueueMin< WriteTarget > > fWriteToDiskQueue
Writing queue (=thread)
Definition: zofits.h:974
int fErrno
propagate errno to main thread
Definition: zofits.h:1011
uint32_t fRealRowWidth
Width in bytes of one uncompressed row.
Definition: zofits.h:1006
void reallocateBuffers()
Allocates the required objects.
Definition: zofits.h:640
virtual bool WriteTableHeader(const char *name="DATA")
Definition: ofits.h:844
int32_t fLatestWrittenTile
Index of the last tile written to disk (for correct ordering while using several threads) ...
Definition: zofits.h:971

+ Here is the call graph for this function:

+ Here is the caller graph for this function: