CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
VERSIONNUM Class Reference

#include <AsciiData.h>

+ Inheritance diagram for VERSIONNUM:

Public Member Functions

 VERSIONNUM ()
 
- Public Member Functions inherited from Tagged
 Tagged ()
 
bool initialized () const
 
void set_initialized ()
 
void unset_initalized ()
 
 Tagged ()
 
bool initialized () const
 
void set_initialized ()
 
void unset_initalized ()
 

Public Attributes

int major
 
int minor
 

Friends

std::istream & operator>> (std::istream &is, VERSIONNUM &x)
 
std::ostream & operator<< (std::ostream &os, const VERSIONNUM &x)
 

Additional Inherited Members

- Protected Member Functions inherited from Tagged
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 12 of file AsciiData.h.

Constructor & Destructor Documentation

◆ VERSIONNUM()

VERSIONNUM::VERSIONNUM ( )
inline

Definition at line 14 of file AsciiData.h.

14{} ;

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const VERSIONNUM & x )
friend

Definition at line 16 of file AsciiData.cxx.

17{
18 os << std::endl << "{ VERSION" << std::endl;
19 if(x.initialized()) {
20 os << " " << x.major;
21 os << " " << x.minor;
22 }
23 os << std::endl << "} VERSION" << std::endl;
24 return os;
25}
Double_t x[10]

◆ operator>>

std::istream & operator>> ( std::istream & is,
VERSIONNUM & x )
friend

Definition at line 6 of file AsciiData.cxx.

7{
8 x.check_start_tag(is,"VERSION");
9 if(!x.initialized()) return is;
10 is >> x.major;
11 is >> x.minor;
12 x.check_end_tag(is, "VERSION");
13 return is;
14}

Member Data Documentation

◆ major

int VERSIONNUM::major

Definition at line 16 of file AsciiData.h.

◆ minor

int VERSIONNUM::minor

Definition at line 17 of file AsciiData.h.


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