TwiceAsNice  2019-02-18
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Basda::Microgate::DiagnosticRecordArchiveImpl Class Reference

An implementation of a diagnostic record archive. More...

#include <DiagnosticRecordArchiveImpl.h>

Inheritance diagram for Basda::Microgate::DiagnosticRecordArchiveImpl:
Inheritance graph
Collaboration diagram for Basda::Microgate::DiagnosticRecordArchiveImpl:
Collaboration graph

Public Member Functions

 DiagnosticRecordArchiveImpl (const std::string &fileName)
 
void open ()
 
virtual void store (const MasterBcuDiagnosticRecordPtr &record)
 
virtual std::string name ()
 
virtual ~DiagnosticRecordArchiveImpl ()
 
 DiagnosticRecordArchiveImpl (const std::string &fileName)
 
void open ()
 
virtual void store (const MasterBcuDiagnosticRecordPtr &record)
 
virtual std::string name ()
 
virtual ~DiagnosticRecordArchiveImpl ()
 
 DiagnosticRecordArchiveImpl (const std::string &fileName)
 
void open ()
 
virtual void store (const MasterBcuDiagnosticRecordPtr &record)
 
virtual std::string name ()
 
virtual ~DiagnosticRecordArchiveImpl ()
 
- Public Member Functions inherited from Basda::Microgate::DiagnosticRecordArchive
virtual ~DiagnosticRecordArchive ()=0
 
virtual ~DiagnosticRecordArchive ()=0
 
virtual ~DiagnosticRecordArchive ()=0
 

Static Public Member Functions

static const std::string MAGIC_ID ()
 
static uint32_t CURRENT_VERSION ()
 
static const std::string MAGIC_ID ()
 
static uint32_t CURRENT_VERSION ()
 
static const std::string MAGIC_ID ()
 
static uint32_t CURRENT_VERSION ()
 

Private Member Functions

void openFile ()
 
void writeToArchive (void *buffer, size_t lengthInByte)
 
void flushArchive ()
 
void writeFileHeader ()
 
void openFile ()
 
void writeToArchive (void *buffer, size_t lengthInByte)
 
void flushArchive ()
 
void writeFileHeader ()
 
void openFile ()
 
void writeToArchive (void *buffer, size_t lengthInByte)
 
void flushArchive ()
 
void writeFileHeader ()
 

Private Attributes

bool opened_
 
std::string fileName_
 
FILE * archive_
 

Detailed Description

An implementation of a diagnostic record archive.

Constructor & Destructor Documentation

◆ DiagnosticRecordArchiveImpl() [1/3]

Basda::Microgate::DiagnosticRecordArchiveImpl::DiagnosticRecordArchiveImpl ( const std::string &  fileName)
explicit

◆ ~DiagnosticRecordArchiveImpl() [1/3]

Basda::Microgate::DiagnosticRecordArchiveImpl::~DiagnosticRecordArchiveImpl ( )
virtual
Note
overridden

◆ DiagnosticRecordArchiveImpl() [2/3]

Basda::Microgate::DiagnosticRecordArchiveImpl::DiagnosticRecordArchiveImpl ( const std::string &  fileName)
explicit

◆ ~DiagnosticRecordArchiveImpl() [2/3]

virtual Basda::Microgate::DiagnosticRecordArchiveImpl::~DiagnosticRecordArchiveImpl ( )
virtual
Note
overridden

◆ DiagnosticRecordArchiveImpl() [3/3]

Basda::Microgate::DiagnosticRecordArchiveImpl::DiagnosticRecordArchiveImpl ( const std::string &  fileName)
explicit

◆ ~DiagnosticRecordArchiveImpl() [3/3]

virtual Basda::Microgate::DiagnosticRecordArchiveImpl::~DiagnosticRecordArchiveImpl ( )
virtual
Note
overridden

Member Function Documentation

◆ CURRENT_VERSION() [1/3]

uint32_t Basda::Microgate::DiagnosticRecordArchiveImpl::CURRENT_VERSION ( )
static

◆ CURRENT_VERSION() [2/3]

static uint32_t Basda::Microgate::DiagnosticRecordArchiveImpl::CURRENT_VERSION ( )
static

◆ CURRENT_VERSION() [3/3]

static uint32_t Basda::Microgate::DiagnosticRecordArchiveImpl::CURRENT_VERSION ( )
static

◆ flushArchive() [1/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::flushArchive ( )
private

◆ flushArchive() [2/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::flushArchive ( )
private

◆ flushArchive() [3/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::flushArchive ( )
private

◆ MAGIC_ID() [1/3]

const std::string Basda::Microgate::DiagnosticRecordArchiveImpl::MAGIC_ID ( )
static

◆ MAGIC_ID() [2/3]

static const std::string Basda::Microgate::DiagnosticRecordArchiveImpl::MAGIC_ID ( )
static

◆ MAGIC_ID() [3/3]

static const std::string Basda::Microgate::DiagnosticRecordArchiveImpl::MAGIC_ID ( )
static

◆ name() [1/3]

virtual std::string Basda::Microgate::DiagnosticRecordArchiveImpl::name ( )
virtual
Note
overridden

Implements Basda::Microgate::DiagnosticRecordArchive.

◆ name() [2/3]

std::string Basda::Microgate::DiagnosticRecordArchiveImpl::name ( )
virtual
Note
overridden

Implements Basda::Microgate::DiagnosticRecordArchive.

◆ name() [3/3]

virtual std::string Basda::Microgate::DiagnosticRecordArchiveImpl::name ( )
virtual
Note
overridden

Implements Basda::Microgate::DiagnosticRecordArchive.

◆ open() [1/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::open ( )

◆ open() [2/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::open ( )

◆ open() [3/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::open ( )

◆ openFile() [1/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::openFile ( )
private

◆ openFile() [2/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::openFile ( )
private

◆ openFile() [3/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::openFile ( )
private

◆ store() [1/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::store ( const MasterBcuDiagnosticRecordPtr record)
virtual
Note
overridden

Implements Basda::Microgate::DiagnosticRecordArchive.

◆ store() [2/3]

virtual void Basda::Microgate::DiagnosticRecordArchiveImpl::store ( const MasterBcuDiagnosticRecordPtr record)
virtual
Note
overridden

Implements Basda::Microgate::DiagnosticRecordArchive.

◆ store() [3/3]

virtual void Basda::Microgate::DiagnosticRecordArchiveImpl::store ( const MasterBcuDiagnosticRecordPtr record)
virtual
Note
overridden

Implements Basda::Microgate::DiagnosticRecordArchive.

◆ writeFileHeader() [1/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::writeFileHeader ( )
private

◆ writeFileHeader() [2/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::writeFileHeader ( )
private

◆ writeFileHeader() [3/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::writeFileHeader ( )
private

◆ writeToArchive() [1/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::writeToArchive ( void *  buffer,
size_t  lengthInByte 
)
private

◆ writeToArchive() [2/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::writeToArchive ( void *  buffer,
size_t  lengthInByte 
)
private

◆ writeToArchive() [3/3]

void Basda::Microgate::DiagnosticRecordArchiveImpl::writeToArchive ( void *  buffer,
size_t  lengthInByte 
)
private

Member Data Documentation

◆ archive_

FILE * Basda::Microgate::DiagnosticRecordArchiveImpl::archive_
private

◆ fileName_

std::string Basda::Microgate::DiagnosticRecordArchiveImpl::fileName_
private

◆ opened_

bool Basda::Microgate::DiagnosticRecordArchiveImpl::opened_
private

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