Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gnsstk::Sinex::Block< T > Class Template Reference

Detailed Description

template<class T>
class gnsstk::Sinex::Block< T >

SINEX block parameterized by the type of data it contains. Each element in the block is a data line of the specified type.

Definition at line 117 of file SinexBlock.hpp.

#include <SinexBlock.hpp>

Inheritance diagram for gnsstk::Sinex::Block< T >:
Inheritance graph
[legend]

Public Member Functions

std::vector< T > & getData ()
 
size_t getSize () const
 
std::string getTitle () const
 
void push_back (const T &x)
 
virtual ~Block ()
 
- Public Member Functions inherited from gnsstk::Sinex::BlockBase
virtual ~BlockBase ()
 

Static Public Member Functions

static BlockBasecreate ()
 

Protected Member Functions

virtual size_t getBlock (Sinex::Stream &s)
 
virtual size_t putBlock (Sinex::Stream &s) const
 

Protected Attributes

std::vector< T > dataVec
 

Additional Inherited Members

- Public Attributes inherited from gnsstk::Sinex::BlockBase
std::string comment
 Comments that apply to an entire block. More...
 

Constructor & Destructor Documentation

◆ ~Block()

template<class T >
virtual gnsstk::Sinex::Block< T >::~Block ( )
inlinevirtual

Definition at line 121 of file SinexBlock.hpp.

Member Function Documentation

◆ create()

template<class T >
static BlockBase* gnsstk::Sinex::Block< T >::create ( )
inlinestatic

Definition at line 123 of file SinexBlock.hpp.

◆ getBlock()

template<class T >
virtual size_t gnsstk::Sinex::Block< T >::getBlock ( Sinex::Stream s)
inlineprotectedvirtual

Reads all data in a block from the specified stream

Exceptions
std::exception
FFStreamError
StringUtils::StringException

More data

End of data

Implements gnsstk::Sinex::BlockBase.

Definition at line 170 of file SinexBlock.hpp.

◆ getData()

template<class T >
std::vector<T>& gnsstk::Sinex::Block< T >::getData ( )
inline

Definition at line 135 of file SinexBlock.hpp.

◆ getSize()

template<class T >
size_t gnsstk::Sinex::Block< T >::getSize ( ) const
inlinevirtual

Returns the number of data items in the block

Implements gnsstk::Sinex::BlockBase.

Definition at line 129 of file SinexBlock.hpp.

◆ getTitle()

template<class T >
std::string gnsstk::Sinex::Block< T >::getTitle ( ) const
inlinevirtual

Returns the block title

Implements gnsstk::Sinex::BlockBase.

Definition at line 125 of file SinexBlock.hpp.

◆ push_back()

template<class T >
void gnsstk::Sinex::Block< T >::push_back ( const T &  x)
inline

Appends data to the block

Definition at line 133 of file SinexBlock.hpp.

◆ putBlock()

template<class T >
virtual size_t gnsstk::Sinex::Block< T >::putBlock ( Sinex::Stream s) const
inlineprotectedvirtual

Writes all data in the block to the specified stream

Exceptions
std::exception
FFStreamError

Implements gnsstk::Sinex::BlockBase.

Definition at line 145 of file SinexBlock.hpp.

Member Data Documentation

◆ dataVec

template<class T >
std::vector<T> gnsstk::Sinex::Block< T >::dataVec
protected

Definition at line 139 of file SinexBlock.hpp.


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


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:46