BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Tagged Class Reference

#include <dmplib.hh>

Inheritance diagram for Tagged:

Public Member Functions

 Tagged ()
bool initialized () const
void set_initialized ()
void unset_initalized ()
 Tagged ()
bool initialized () const
void set_initialized ()
void unset_initalized ()
 Tagged ()
bool initialized () const
void set_initialized ()
void unset_initalized ()
 Tagged ()
bool initialized () const
void set_initialized ()
void unset_initalized ()

Protected Member Functions

void check_start_tag (std::istream &is, const char *tag)
void check_end_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)
void check_end_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)
void check_end_tag (std::istream &is, const char *tag)
void check_start_tag (std::istream &is, const char *tag)
void check_end_tag (std::istream &is, const char *tag)

Detailed Description

Definition at line 45 of file Event/AsciiDmp/include/AsciiDmp/dmplib.hh.

Constructor & Destructor Documentation

◆ Tagged() [1/4]

Tagged::Tagged ( )
inline

Definition at line 47 of file Event/AsciiDmp/include/AsciiDmp/dmplib.hh.

47: m_initialized( false ){};

◆ Tagged() [2/4]

Tagged::Tagged ( )
inline

Definition at line 47 of file InstallArea/x86_64-el9-gcc13-dbg/include/AsciiDmp/dmplib.hh.

47: m_initialized( false ){};

◆ Tagged() [3/4]

Tagged::Tagged ( )
inline

Definition at line 47 of file InstallArea/x86_64-el9-gcc13-opt/include/AsciiDmp/dmplib.hh.

47: m_initialized( false ){};

◆ Tagged() [4/4]

Tagged::Tagged ( )
inline

Definition at line 47 of file dmplib.h.

47: m_initialized( false ){};

Member Function Documentation

◆ check_end_tag() [1/4]

void Tagged::check_end_tag ( std::istream & is,
const char * tag )
inlineprotected

Definition at line 93 of file Event/AsciiDmp/include/AsciiDmp/dmplib.hh.

93 {
94 char c;
95 is >> c;
96 if ( c != '}' ) throw AsciiNoEndChar();
97
98 std::string in_tag;
99 is >> in_tag;
100 if ( in_tag != tag ) throw AsciiWrongEndTag( tag, in_tag );
101}

◆ check_end_tag() [2/4]

void Tagged::check_end_tag ( std::istream & is,
const char * tag )
protected

◆ check_end_tag() [3/4]

void Tagged::check_end_tag ( std::istream & is,
const char * tag )
protected

◆ check_end_tag() [4/4]

void Tagged::check_end_tag ( std::istream & is,
const char * tag )
protected

◆ check_start_tag() [1/4]

void Tagged::check_start_tag ( std::istream & is,
const char * tag )
inlineprotected

Definition at line 69 of file Event/AsciiDmp/include/AsciiDmp/dmplib.hh.

69 {
70 // read input, check for '{' character
71 char c;
72 if ( !( is >> c ) || ( c != '{' ) ) { throw AsciiNoStartChar(); }
73
74 // compare tags
75 std::string in_tag;
76 is >> in_tag;
77 if ( in_tag != tag ) throw AsciiWrongStartTag( tag, in_tag );
78
79 // check for empty block
80 is >> c;
81 if ( c == '}' )
82 {
83 is >> in_tag;
84 if ( in_tag != tag ) throw AsciiWrongEndTag( tag, in_tag );
85 }
86 else
87 {
88 is.putback( c );
90 }
91}

◆ check_start_tag() [2/4]

void Tagged::check_start_tag ( std::istream & is,
const char * tag )
protected

◆ check_start_tag() [3/4]

void Tagged::check_start_tag ( std::istream & is,
const char * tag )
protected

◆ check_start_tag() [4/4]

void Tagged::check_start_tag ( std::istream & is,
const char * tag )
protected

◆ initialized() [1/4]

bool Tagged::initialized ( ) const
inline

Definition at line 63 of file Event/AsciiDmp/include/AsciiDmp/dmplib.hh.

63{ return m_initialized; }

◆ initialized() [2/4]

bool Tagged::initialized ( ) const

◆ initialized() [3/4]

bool Tagged::initialized ( ) const

◆ initialized() [4/4]

bool Tagged::initialized ( ) const

◆ set_initialized() [1/4]

void Tagged::set_initialized ( )
inline

Definition at line 65 of file Event/AsciiDmp/include/AsciiDmp/dmplib.hh.

65{ m_initialized = true; }

Referenced by check_start_tag(), main(), BesAsciiIO::SaveAsciiEvents(), and BesAsciiIO::SaveHitAsciiEvents().

◆ set_initialized() [2/4]

void Tagged::set_initialized ( )

◆ set_initialized() [3/4]

void Tagged::set_initialized ( )

◆ set_initialized() [4/4]

void Tagged::set_initialized ( )

◆ unset_initalized() [1/4]

void Tagged::unset_initalized ( )
inline

Definition at line 67 of file Event/AsciiDmp/include/AsciiDmp/dmplib.hh.

67{ m_initialized = false; }

◆ unset_initalized() [2/4]

void Tagged::unset_initalized ( )

◆ unset_initalized() [3/4]

void Tagged::unset_initalized ( )

◆ unset_initalized() [4/4]

void Tagged::unset_initalized ( )

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