Base class for all SINEX blocks; the common base allows blocks of varying types to be stored in a vector. Specific block types are realized by the derived Block class defined below.
Definition at line 63 of file SinexBlock.hpp.
#include <SinexBlock.hpp>
Public Member Functions | |
virtual size_t | getSize () const =0 |
virtual std::string | getTitle () const =0 |
virtual | ~BlockBase () |
Public Attributes | |
std::string | comment |
Comments that apply to an entire block. More... | |
Protected Member Functions | |
virtual size_t | getBlock (Sinex::Stream &s)=0 |
virtual size_t | putBlock (Sinex::Stream &s) const =0 |
Friends | |
class | Data |
|
inlinevirtual |
Definition at line 71 of file SinexBlock.hpp.
|
protectedpure virtual |
Reads a record from the given SinexStream; if an error is encountered in retrieving the record, the stream is reset to its original position and its fail-bit is set.
s | Stream from which to read |
std::exception | |
StringException | when a StringUtils function fails |
FFStreamError | when exceptions(failbit) is set and a read or formatting error occurs. This also resets the stream to its pre-read position. |
Implemented in gnsstk::Sinex::Block< T >.
|
pure virtual |
Returns the number of lines in the block
Implemented in gnsstk::Sinex::Block< T >.
|
pure virtual |
Returns the block title
Implemented in gnsstk::Sinex::Block< T >.
|
protectedpure virtual |
Writes the formatted block to the SinexStream.
s | Stream to which to write |
std::exception | |
FFStreamError | |
StringUtils::StringException |
Implemented in gnsstk::Sinex::Block< T >.
|
friend |
Definition at line 67 of file SinexBlock.hpp.
std::string gnsstk::Sinex::BlockBase::comment |
Comments that apply to an entire block.
Definition at line 74 of file SinexBlock.hpp.