Class Reference for E1039 Core & Analysis Software
Home page
Related Pages
Namespaces
Classes
Files
External Links
File List
File Members
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
;
14
enum
PHMessageType
{
PHError
,
PHWarning
,
PHHullo
};
15
enum
PHAccessType
{
PHReadOnly
,
PHWrite
,
PHUpdate
};
16
enum
PHTreeType
{
PHEventTree
,
PHRunTree
};
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__ */
PHWarning
Definition:
phool.h:14
PHMessageType
PHMessageType
Definition:
phool.h:14
PHUpdate
Definition:
phool.h:15
PHHullo
Definition:
phool.h:14
PHTreeType
PHTreeType
Definition:
phool.h:16
PHMessage
void PHMessage(const std::string &functionName, int messageType, const std::string &message)
Definition:
PHMessage.cc:8
PHError
Definition:
phool.h:14
PHReadOnly
Definition:
phool.h:15
PHRunTree
Definition:
phool.h:16
PHAccessType
PHAccessType
Definition:
phool.h:15
True
static const int True
Definition:
phool.h:10
PHWrite
Definition:
phool.h:15
PHBoolean
int PHBoolean
Definition:
phool.h:13
False
static const int False
Definition:
phool.h:9
PHEventTree
Definition:
phool.h:16
e1039-core
framework
phool
phool.h
Built by
Haiwang Yu
. updated:
Wed May 26 2021 21:44:02
using
1.8.5 with
SeaQuest GitHub integration