NCBI C++ ToolKit
Public Member Functions | Public Attributes | List of all members
CAsnSizer Class Reference

Search Toolkit Book for CAsnSizer

#include <objmgr/split/asn_sizer.hpp>

+ Collaboration diagram for CAsnSizer:

Public Member Functions

 CAsnSizer (void)
 
 ~CAsnSizer (void)
 
CObjectOStreamOpenDataStream (void)
 
void CloseDataStream (void)
 
size_t GetAsnSize (void) const
 
const char * GetAsnData (void) const
 
size_t GetCompressedSize (void) const
 
const char * GetCompressedData (void) const
 
size_t GetCompressedSize (const SSplitterParams &params)
 
template<class C >
void Set (const C &obj)
 
template<class C >
void Set (const C &obj, const SSplitterParams &params)
 
template<class C >
size_t GetAsnSize (const C &obj)
 
template<class C >
size_t GetCompressedSize (const C &obj, const SSplitterParams &params)
 

Public Attributes

vector< char > m_AsnData
 
vector< char > m_CompressedData
 
AutoPtr< CNcbiOstrstreamm_MStream
 
AutoPtr< CObjectOStreamm_OStream
 

Detailed Description

Definition at line 54 of file asn_sizer.hpp.

Constructor & Destructor Documentation

◆ CAsnSizer()

CAsnSizer::CAsnSizer ( void  )

Definition at line 45 of file asn_sizer.cpp.

◆ ~CAsnSizer()

CAsnSizer::~CAsnSizer ( void  )

Definition at line 50 of file asn_sizer.cpp.

Member Function Documentation

◆ CloseDataStream()

void CAsnSizer::CloseDataStream ( void  )

Definition at line 66 of file asn_sizer.cpp.

References m_AsnData, m_MStream, m_OStream, and AutoPtr< X, Del >::reset().

Referenced by Set().

◆ GetAsnData()

const char* CAsnSizer::GetAsnData ( void  ) const
inline

Definition at line 67 of file asn_sizer.hpp.

References m_AsnData.

Referenced by GetCompressedSize().

◆ GetAsnSize() [1/2]

template<class C >
size_t CAsnSizer::GetAsnSize ( const C obj)
inline

Definition at line 95 of file asn_sizer.hpp.

References GetAsnSize(), and Set().

◆ GetAsnSize() [2/2]

size_t CAsnSizer::GetAsnSize ( void  ) const
inline

Definition at line 63 of file asn_sizer.hpp.

References m_AsnData.

Referenced by GetAsnSize(), and GetCompressedSize().

◆ GetCompressedData()

const char* CAsnSizer::GetCompressedData ( void  ) const
inline

Definition at line 75 of file asn_sizer.hpp.

References m_CompressedData.

◆ GetCompressedSize() [1/3]

template<class C >
size_t CAsnSizer::GetCompressedSize ( const C obj,
const SSplitterParams params 
)
inline

Definition at line 102 of file asn_sizer.hpp.

References GetCompressedSize(), and Set().

◆ GetCompressedSize() [2/3]

size_t CAsnSizer::GetCompressedSize ( const SSplitterParams params)

◆ GetCompressedSize() [3/3]

size_t CAsnSizer::GetCompressedSize ( void  ) const
inline

Definition at line 71 of file asn_sizer.hpp.

References m_CompressedData.

Referenced by GetCompressedSize(), and Set().

◆ OpenDataStream()

CObjectOStream & CAsnSizer::OpenDataStream ( void  )

◆ Set() [1/2]

template<class C >
void CAsnSizer::Set ( const C obj)
inline

Definition at line 82 of file asn_sizer.hpp.

References CloseDataStream(), and OpenDataStream().

Referenced by GetAsnSize(), GetCompressedSize(), and Set().

◆ Set() [2/2]

template<class C >
void CAsnSizer::Set ( const C obj,
const SSplitterParams params 
)
inline

Definition at line 88 of file asn_sizer.hpp.

References GetCompressedSize(), and Set().

Member Data Documentation

◆ m_AsnData

vector<char> CAsnSizer::m_AsnData

Definition at line 109 of file asn_sizer.hpp.

Referenced by CloseDataStream(), GetAsnData(), GetAsnSize(), and OpenDataStream().

◆ m_CompressedData

vector<char> CAsnSizer::m_CompressedData

Definition at line 110 of file asn_sizer.hpp.

Referenced by GetCompressedData(), GetCompressedSize(), and OpenDataStream().

◆ m_MStream

AutoPtr<CNcbiOstrstream> CAsnSizer::m_MStream

Definition at line 111 of file asn_sizer.hpp.

Referenced by CloseDataStream(), and OpenDataStream().

◆ m_OStream

AutoPtr<CObjectOStream> CAsnSizer::m_OStream

Definition at line 112 of file asn_sizer.hpp.

Referenced by CloseDataStream(), and OpenDataStream().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:32 2024 by modify_doxy.py rev. 669887