BOSS 7.0.2
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

Constructor & Destructor Documentation

◆ Tagged() [1/4]

Tagged::Tagged ( )
inline

Definition at line 47 of file Event/AsciiDmp/AsciiDmp-01-03-01/AsciiDmp/dmplib.hh.

48 : m_initialized(false)
49 {};

◆ Tagged() [2/4]

Tagged::Tagged ( )
inline

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

48 : m_initialized(false)
49 {};

◆ Tagged() [3/4]

Tagged::Tagged ( )
inline

Definition at line 47 of file InstallArea/include/Trigger/Trigger/dmplib.h.

48 : m_initialized(false)
49 {};

◆ Tagged() [4/4]

Tagged::Tagged ( )
inline

Definition at line 47 of file Trigger/Trigger/Trigger-00-01-05/Trigger/dmplib.h.

48 : m_initialized(false)
49 {};

Member Function Documentation

◆ check_end_tag() [1/4]

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

Definition at line 108 of file Event/AsciiDmp/AsciiDmp-01-03-01/AsciiDmp/dmplib.hh.

109{
110 char c;
111 is >> c;
112 if(c != '}')
113 throw AsciiNoEndChar();
114
115 std::string in_tag;
116 is >> in_tag;
117 if(in_tag != tag)
118 throw AsciiWrongEndTag(tag, in_tag);
119}

◆ 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 81 of file Event/AsciiDmp/AsciiDmp-01-03-01/AsciiDmp/dmplib.hh.

82{
83 // read input, check for '{' character
84 char c;
85 if(!(is >> c) || (c != '{')) {
86 throw AsciiNoStartChar();
87 }
88
89 // compare tags
90 std::string in_tag;
91 is >> in_tag;
92 if(in_tag != tag)
93 throw AsciiWrongStartTag(tag, in_tag);
94
95 // check for empty block
96 is >> c;
97 if(c == '}') {
98 is >> in_tag;
99 if(in_tag != tag)
100 throw AsciiWrongEndTag(tag, in_tag);
101 } else {
102 is.putback(c);
104 }
105}

◆ 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/AsciiDmp-01-03-01/AsciiDmp/dmplib.hh.

64{
65 return m_initialized;
66}

◆ 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

◆ 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 75 of file Event/AsciiDmp/AsciiDmp-01-03-01/AsciiDmp/dmplib.hh.

76{
77 m_initialized = false;
78}

◆ 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: