Manages a DADA ASCII header block. More...

#include <DADAHeader.h>

Public Member Functions

void set_header (const char *ascii_header)
 Set the DADA header. More...
 
const char * get_header () const
 Get the immutable DADA header. More...
 
char * get_header ()
 Get the mutable DADA header. More...
 
void resize (unsigned size=0)
 resize the header More...
 
size_t size ()
 Get the current header size. More...
 

Static Public Attributes

static const unsigned default_header_size = 4096
 The default DADA ASCII header block size. More...
 

Protected Attributes

std::vector< char > header
 The ASCII header block.
 

Detailed Description

Manages a DADA ASCII header block.

Member Function Documentation

◆ get_header() [1/2]

char* dsp::DADAHeader::get_header ( )
inline

Get the mutable DADA header.

◆ get_header() [2/2]

const char* dsp::DADAHeader::get_header ( ) const
inline

Get the immutable DADA header.

◆ resize()

void dsp::DADAHeader::resize ( unsigned  size = 0)

resize the header

Parameters
sizedesired header size

If size is less than default_header_size, it will be set to default_header_size If size is greater than default_header_size, it will be set to the smallest power of two that is larger than size

◆ set_header()

void dsp::DADAHeader::set_header ( const char *  ascii_header)

Set the DADA header.

Parameters
ascii_headerblock of ASCII text that will be copied

◆ size()

size_t dsp::DADAHeader::size ( )
inline

Get the current header size.

Member Data Documentation

◆ default_header_size

const unsigned dsp::DADAHeader::default_header_size = 4096
static

The default DADA ASCII header block size.


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

Generated using doxygen 1.8.17