Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
phool.h
Go to the documentation of this file.
1 #ifndef __PHOOL_H__
2 #define __PHOOL_H__
3 
4 // Standard PHOOL's header file.
5 // Purpose: declarations and definitions for PHOOL
6 
7 #include <iostream>
8 
9 static const int False = 0;
10 static const int True = 1;
11 
12 // Global type definitions
13 typedef int PHBoolean;
17 
18 
19 // General purpose functions
20 void PHMessage(const std::string&, int, const std::string&);
21 
22 #ifndef __CINT__
23 #define PHWHERE __FILE__ << ":" << __LINE__ << ": "
24 #define PHMESSAGE(x) do {std::cout << PHWHERE << (x) << std::endl;} while(0)
25 #define PHOOL_VIRTUAL_WARNING do {std::cout << PHWHERE << "using virtual function, doing nothing" << std::endl;} while (0)
26 // now one where you can give an argument, e.g. the method name
27 #define PHOOL_VIRTUAL_WARN(x) do {std::cout << PHWHERE << "using virtual function " << x << " doing nothing" << std::endl;} while (0)
28 #endif
29 
30 
31 
32 #endif /* __PHOOL_H__ */
PHMessageType
Definition: phool.h:14
Definition: phool.h:15
Definition: phool.h:14
PHTreeType
Definition: phool.h:16
void PHMessage(const std::string &functionName, int messageType, const std::string &message)
Definition: PHMessage.cc:8
Definition: phool.h:14
PHAccessType
Definition: phool.h:15
static const int True
Definition: phool.h:10
Definition: phool.h:15
int PHBoolean
Definition: phool.h:13
static const int False
Definition: phool.h:9