NCBI C++ ToolKit
Classes | Macros | Functions | Variables
test.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbiapp.hpp>
#include <corelib/ncbienv.hpp>
#include <serial/strbuffer.hpp>
+ Include dependency graph for test.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CTest
 

Macros

#define ERR_POST(m)
 

Functions

int main (int argc, char **argv)
 
bool FirstIdChar (char c)
 
bool IdChar (char c)
 
void SkipEndOfLine (CStreamBuffer &b, char lastChar)
 
void SkipComments (CStreamBuffer &b)
 
char SkipWhiteSpace (CStreamBuffer &b)
 
char SkipWhiteSpaceAndGetChar (CStreamBuffer &b)
 
void UngetNonWhiteSpace (CStreamBuffer &b, char c)
 
size_t ReadId (CStreamBuffer &b)
 
void ReadNumber (CStreamBuffer &b)
 
void ReadString (CStreamBuffer &b)
 
int GetHexChar (CStreamBuffer &b)
 
pair< size_t, boolReadBytes (CStreamBuffer &b, char *dst, size_t length)
 
void ReadOctetString (CStreamBuffer &b)
 
void ReadBlock (CStreamBuffer &b)
 
void ReadValue (CStreamBuffer &b)
 

Variables

 USING_NCBI_SCOPE
 

Macro Definition Documentation

◆ ERR_POST

#define ERR_POST (   m)

Definition at line 75 of file test.cpp.

Function Documentation

◆ FirstIdChar()

bool FirstIdChar ( char  c)
inline

Definition at line 20 of file test.cpp.

References isalpha().

Referenced by ReadId().

◆ GetHexChar()

int GetHexChar ( CStreamBuffer &  b)

Definition at line 235 of file test.cpp.

References b, ERR_POST, SkipEndOfLine(), and THROW1_TRACE.

Referenced by ReadBytes().

◆ IdChar()

bool IdChar ( char  c)
inline

Definition at line 26 of file test.cpp.

References isalnum().

Referenced by ReadId().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 14 of file test.cpp.

References CNcbiApplicationAPI::AppMain().

◆ ReadBlock()

void ReadBlock ( CStreamBuffer &  b)

Definition at line 344 of file test.cpp.

References b, ERR_POST, ReadValue(), SkipWhiteSpace(), SkipWhiteSpaceAndGetChar(), and THROW1_TRACE.

Referenced by ReadValue().

◆ ReadBytes()

pair<size_t, bool> ReadBytes ( CStreamBuffer &  b,
char *  dst,
size_t  length 
)

Definition at line 264 of file test.cpp.

References b, and GetHexChar().

Referenced by ReadOctetString().

◆ ReadId()

size_t ReadId ( CStreamBuffer &  b)

Definition at line 134 of file test.cpp.

References b, ERR_POST, FirstIdChar(), i, IdChar(), SkipWhiteSpace(), and THROW1_TRACE.

Referenced by ReadValue(), and CTest::Run().

◆ ReadNumber()

void ReadNumber ( CStreamBuffer &  b)

Definition at line 172 of file test.cpp.

References b, SkipWhiteSpaceAndGetChar(), and THROW1_TRACE.

Referenced by ReadValue().

◆ ReadOctetString()

void ReadOctetString ( CStreamBuffer &  b)

Definition at line 286 of file test.cpp.

References b, buffer, ERR_POST, ReadBytes(), SkipWhiteSpaceAndGetChar(), and THROW1_TRACE.

Referenced by ReadValue().

◆ ReadString()

void ReadString ( CStreamBuffer &  b)

Definition at line 196 of file test.cpp.

References b, ERR_POST, NStr::IntToString(), SkipEndOfLine(), and THROW1_TRACE.

Referenced by ReadValue().

◆ ReadValue()

void ReadValue ( CStreamBuffer &  b)

Definition at line 302 of file test.cpp.

References b, ERR_POST, ReadBlock(), ReadId(), ReadNumber(), ReadOctetString(), ReadString(), and SkipWhiteSpace().

Referenced by ReadBlock(), and CTest::Run().

◆ SkipComments()

void SkipComments ( CStreamBuffer &  b)

Definition at line 37 of file test.cpp.

References b, ERR_POST, and SkipEndOfLine().

Referenced by SkipWhiteSpace().

◆ SkipEndOfLine()

void SkipEndOfLine ( CStreamBuffer &  b,
char  lastChar 
)
inline

Definition at line 32 of file test.cpp.

References b.

Referenced by GetHexChar(), ReadString(), SkipComments(), SkipWhiteSpace(), and UngetNonWhiteSpace().

◆ SkipWhiteSpace()

char SkipWhiteSpace ( CStreamBuffer &  b)

Definition at line 78 of file test.cpp.

References b, ERR_POST, SkipComments(), and SkipEndOfLine().

Referenced by ReadBlock(), ReadId(), ReadValue(), and SkipWhiteSpaceAndGetChar().

◆ SkipWhiteSpaceAndGetChar()

char SkipWhiteSpaceAndGetChar ( CStreamBuffer &  b)
inline

Definition at line 110 of file test.cpp.

References b, and SkipWhiteSpace().

Referenced by ReadBlock(), ReadNumber(), ReadOctetString(), and CTest::Run().

◆ UngetNonWhiteSpace()

void UngetNonWhiteSpace ( CStreamBuffer &  b,
char  c 
)
inline

Definition at line 118 of file test.cpp.

References b, and SkipEndOfLine().

Variable Documentation

◆ USING_NCBI_SCOPE

USING_NCBI_SCOPE

Definition at line 6 of file test.cpp.

Modified on Tue Apr 23 07:37:17 2024 by modify_doxy.py rev. 669887