CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Attributes
TEcnaParCout Class Reference

#include <TEcnaParCout.h>

Inheritance diagram for TEcnaParCout:

Public Member Functions

Int_t GetCodePrint (const TString)
 
void Init ()
 
 TEcnaParCout ()
 
virtual ~TEcnaParCout ()
 

Public Attributes

Int_t fCodePrintAllComments
 
Int_t fCodePrintComments
 
Int_t fCodePrintNoComment
 
Int_t fCodePrintWarnings
 
Int_t fFlagPrint
 

Private Attributes

Int_t fCdelete
 
Int_t fCnaCommand
 
Int_t fCnaError
 
Int_t fCnew
 
Int_t fgMaxCar
 
TString fTTBELL
 

Detailed Description

Definition at line 18 of file TEcnaParCout.h.

Constructor & Destructor Documentation

TEcnaParCout::TEcnaParCout ( )

Definition at line 44 of file TEcnaParCout.cc.

References Init().

45 {
46 // Constructor without argument
47 
48  // cout << "[Info Management] CLASS: TEcnaParCout. CREATE OBJECT: this = " << this << endl;
49 
50  Init();
51 }
TEcnaParCout::~TEcnaParCout ( )
virtual

Definition at line 33 of file TEcnaParCout.cc.

34 {
35 //destructor
36  // cout << "[Info Management] CLASS: TEcnaParCout. DESTROY OBJECT: this = " << this << endl;
37 }

Member Function Documentation

Int_t TEcnaParCout::GetCodePrint ( const TString  chcode)

Definition at line 77 of file TEcnaParCout.cc.

Referenced by Init(), TEcnaRead::Init(), TEcnaWrite::Init(), and TEcnaRun::Init().

78 {
79 //Get the CodePrint values
80 
81  Int_t code_print = 101; // => default value: print warnings
82 
83  // The values must be different
84 
85  if( chcode == "NoComment" ){code_print = 100;}
86  if( chcode == "Warnings" ){code_print = 101;} // => default value
87  if( chcode == "Comments" ){code_print = 102;}
88  if( chcode == "AllComments" ){code_print = 103;}
89 
90  return code_print;
91 }
void TEcnaParCout::Init ( void  )

Definition at line 53 of file TEcnaParCout.cc.

References fCnaCommand, fCnaError, fCodePrintAllComments, fCodePrintComments, fCodePrintNoComment, fCodePrintWarnings, fFlagPrint, fgMaxCar, fTTBELL, and GetCodePrint().

Referenced by TEcnaParCout().

54 {
55  fgMaxCar = (Int_t)512; // max number of characters in TStrings
56 
57  fTTBELL = '\007';
58 
59  //................................................... Code Print
60  fCodePrintNoComment = GetCodePrint("NoComment");
61  fCodePrintWarnings = GetCodePrint("Warnings "); // => default value
62  fCodePrintComments = GetCodePrint("Comments");
63  fCodePrintAllComments = GetCodePrint("AllComments");
64 
66 
67  //................ Init CNA Command and error numbering
68  fCnaCommand = 0;
69  fCnaError = 0;
70 }// end of Init()
Int_t fCodePrintAllComments
Definition: TEcnaParCout.h:41
Int_t fFlagPrint
Definition: TEcnaParCout.h:40
Int_t fCodePrintComments
Definition: TEcnaParCout.h:41
Int_t fCnaError
Definition: TEcnaParCout.h:32
TString fTTBELL
Definition: TEcnaParCout.h:30
Int_t GetCodePrint(const TString)
Definition: TEcnaParCout.cc:77
Int_t fCodePrintNoComment
Definition: TEcnaParCout.h:41
Int_t fgMaxCar
Definition: TEcnaParCout.h:26
Int_t fCodePrintWarnings
Definition: TEcnaParCout.h:41
Int_t fCnaCommand
Definition: TEcnaParCout.h:32

Member Data Documentation

Int_t TEcnaParCout::fCdelete
private

Definition at line 28 of file TEcnaParCout.h.

Int_t TEcnaParCout::fCnaCommand
private

Definition at line 32 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCnaError
private

Definition at line 32 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCnew
private

Definition at line 28 of file TEcnaParCout.h.

Int_t TEcnaParCout::fCodePrintAllComments

Definition at line 41 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCodePrintComments

Definition at line 41 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCodePrintNoComment

Definition at line 41 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fCodePrintWarnings

Definition at line 41 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fFlagPrint

Definition at line 40 of file TEcnaParCout.h.

Referenced by Init().

Int_t TEcnaParCout::fgMaxCar
private

Definition at line 26 of file TEcnaParCout.h.

Referenced by Init().

TString TEcnaParCout::fTTBELL
private

Definition at line 30 of file TEcnaParCout.h.

Referenced by Init().