NCBI C++ ToolKit
|
Search Toolkit Book for CAsnSizer
#include <objmgr/split/asn_sizer.hpp>
Public Member Functions | |
CAsnSizer (void) | |
~CAsnSizer (void) | |
CObjectOStream & | OpenDataStream (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 ¶ms) |
template<class C > | |
void | Set (const C &obj) |
template<class C > | |
void | Set (const C &obj, const SSplitterParams ¶ms) |
template<class C > | |
size_t | GetAsnSize (const C &obj) |
template<class C > | |
size_t | GetCompressedSize (const C &obj, const SSplitterParams ¶ms) |
Public Attributes | |
vector< char > | m_AsnData |
vector< char > | m_CompressedData |
AutoPtr< CNcbiOstrstream > | m_MStream |
AutoPtr< CObjectOStream > | m_OStream |
Definition at line 54 of file asn_sizer.hpp.
CAsnSizer::CAsnSizer | ( | void | ) |
Definition at line 45 of file asn_sizer.cpp.
CAsnSizer::~CAsnSizer | ( | void | ) |
Definition at line 50 of file asn_sizer.cpp.
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().
|
inline |
Definition at line 67 of file asn_sizer.hpp.
References m_AsnData.
Referenced by GetCompressedSize().
Definition at line 95 of file asn_sizer.hpp.
References GetAsnSize(), and Set().
|
inline |
Definition at line 63 of file asn_sizer.hpp.
References m_AsnData.
Referenced by GetAsnSize(), and GetCompressedSize().
|
inline |
Definition at line 75 of file asn_sizer.hpp.
References m_CompressedData.
|
inline |
Definition at line 102 of file asn_sizer.hpp.
References GetCompressedSize(), and Set().
size_t CAsnSizer::GetCompressedSize | ( | const SSplitterParams & | params | ) |
Definition at line 75 of file asn_sizer.cpp.
References CId2Compressor::Compress(), GetAsnData(), GetAsnSize(), GetCompressedSize(), and m_CompressedData.
Referenced by GetCompressedSize().
|
inline |
Definition at line 71 of file asn_sizer.hpp.
References m_CompressedData.
Referenced by GetCompressedSize(), and Set().
CObjectOStream & CAsnSizer::OpenDataStream | ( | void | ) |
Definition at line 55 of file asn_sizer.cpp.
References eSerial_AsnBinary, m_AsnData, m_CompressedData, m_MStream, m_OStream, CObjectOStream::Open(), and AutoPtr< X, Del >::reset().
Referenced by Set().
Definition at line 82 of file asn_sizer.hpp.
References CloseDataStream(), and OpenDataStream().
Referenced by GetAsnSize(), GetCompressedSize(), and Set().
|
inline |
Definition at line 88 of file asn_sizer.hpp.
References GetCompressedSize(), and Set().
vector<char> CAsnSizer::m_AsnData |
Definition at line 109 of file asn_sizer.hpp.
Referenced by CloseDataStream(), GetAsnData(), GetAsnSize(), and OpenDataStream().
vector<char> CAsnSizer::m_CompressedData |
Definition at line 110 of file asn_sizer.hpp.
Referenced by GetCompressedData(), GetCompressedSize(), and OpenDataStream().
AutoPtr<CNcbiOstrstream> CAsnSizer::m_MStream |
Definition at line 111 of file asn_sizer.hpp.
Referenced by CloseDataStream(), and OpenDataStream().
AutoPtr<CObjectOStream> CAsnSizer::m_OStream |
Definition at line 112 of file asn_sizer.hpp.
Referenced by CloseDataStream(), and OpenDataStream().