IODA Bundle
odc::core::CodecFactory Class Reference

#include <CodecFactory.h>

Inheritance diagram for odc::core::CodecFactory:
[legend]
Collaboration diagram for odc::core::CodecFactory:
[legend]

Public Member Functions

 CodecFactory ()
 
 ~CodecFactory ()
 
void enregister (const std::string &name, CodecBuilderBase &builder)
 
void deregister (const std::string &name, CodecBuilderBase &builder)
 
template<typename ByteOrder >
std::unique_ptr< Codecbuild (const std::string &name, api::ColumnType type) const
 
template<typename ByteOrder >
std::unique_ptr< Codecload (DataStream< ByteOrder > &ds, api::ColumnType type) const
 

Static Public Member Functions

static CodecFactoryinstance ()
 

Private Attributes

std::mutex m_
 
std::map< std::string, std::reference_wrapper< CodecBuilderBase > > builders_
 

Detailed Description

Definition at line 42 of file CodecFactory.h.

Constructor & Destructor Documentation

◆ CodecFactory()

odc::core::CodecFactory::CodecFactory ( )

Definition at line 21 of file CodecFactory.cc.

◆ ~CodecFactory()

odc::core::CodecFactory::~CodecFactory ( )

Definition at line 23 of file CodecFactory.cc.

Member Function Documentation

◆ build()

template<typename ByteOrder >
std::unique_ptr< Codec > odc::core::CodecFactory::build ( const std::string &  name,
api::ColumnType  type 
) const

Definition at line 145 of file CodecFactory.h.

Here is the caller graph for this function:

◆ deregister()

void odc::core::CodecFactory::deregister ( const std::string &  name,
CodecBuilderBase builder 
)

Definition at line 38 of file CodecFactory.cc.

Here is the caller graph for this function:

◆ enregister()

void odc::core::CodecFactory::enregister ( const std::string &  name,
CodecBuilderBase builder 
)

Definition at line 30 of file CodecFactory.cc.

Here is the caller graph for this function:

◆ instance()

CodecFactory & odc::core::CodecFactory::instance ( )
static

Definition at line 25 of file CodecFactory.cc.

Here is the caller graph for this function:

◆ load()

template<typename ByteOrder >
std::unique_ptr< Codec > odc::core::CodecFactory::load ( DataStream< ByteOrder > &  ds,
api::ColumnType  type 
) const

Definition at line 154 of file CodecFactory.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ builders_

std::map<std::string, std::reference_wrapper<CodecBuilderBase> > odc::core::CodecFactory::builders_
private

Definition at line 63 of file CodecFactory.h.

◆ m_

std::mutex odc::core::CodecFactory::m_
mutableprivate

Definition at line 62 of file CodecFactory.h.


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