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

Search Toolkit Book for TNCBufferType

#include "nc_utils.hpp"
(Private to src/app/netcache.)

+ Inheritance diagram for TNCBufferType:
+ Collaboration diagram for TNCBufferType:

Public Member Functions

TNCBufferTypeWriteText (const char *buf)
 
TNCBufferTypeWriteText (const string &buf)
 
template<typename NumType >
TNCBufferTypeWriteNumber (NumType num)
 
TNCBufferTypeWriteBool (bool b)
 
- Public Member Functions inherited from CSimpleBufferT< char >
 CSimpleBufferT (size_type new_size=0)
 
 CSimpleBufferT (const CSimpleBufferT &sb)
 
 ~CSimpleBufferT ()
 
CSimpleBufferToperator= (const CSimpleBufferT &sb)
 
CSimpleBufferTappend (const void *buf, size_t len)
 
size_type size () const
 
size_type capacity () const
 
void reserve (size_type new_size)
 
void resize (size_type new_size)
 
void resize_mem (size_type new_size)
 Resize the buffer. No data preservation. More...
 
void swap (CSimpleBufferT< char > &other)
 
void reserve_mem (size_type new_size)
 Reserve memory. No data preservation guarantees. More...
 
void clear ()
 
const value_typeoperator[] (size_type i) const
 
value_typeoperator[] (size_type i)
 
const value_typedata () const
 
value_typedata ()
 

Additional Inherited Members

- Public Types inherited from CSimpleBufferT< char >
typedef char value_type
 
typedef size_t size_type
 

Detailed Description

Definition at line 63 of file nc_utils.hpp.

Member Function Documentation

◆ WriteBool()

TNCBufferType& TNCBufferType::WriteBool ( bool  b)
inline

Definition at line 78 of file nc_utils.hpp.

References b, and WriteText().

Referenced by CNCActiveSyncControl::PrintState(), and CNCBlobStorage::WriteDbInfo().

◆ WriteNumber()

template<typename NumType >
TNCBufferType& TNCBufferType::WriteNumber ( NumType  num)
inline

◆ WriteText() [1/2]

TNCBufferType& TNCBufferType::WriteText ( const char *  buf)
inline

◆ WriteText() [2/2]

TNCBufferType& TNCBufferType::WriteText ( const string buf)
inline

Definition at line 70 of file nc_utils.hpp.

References CSimpleBufferT< T, ResizeStrategy >::append(), and buf.


The documentation for this class was generated from the following file:
Modified on Thu Apr 11 15:11:40 2024 by modify_doxy.py rev. 669887