LRT14
1.0
Main Page
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
PrintInConstructor.h
1
#ifndef PRINT_IN_CONSTRUCTOR_H_
2
#define PRINT_IN_CONSTRUCTOR_H_
3
4
#include <string>
5
//Allows messages to be printed during the construction and destruction of objects. -dg
6
//Use as: func_constructor(): print_brain("Constructing Brain"), brain(args) ... { }
7
8
class
PrintInConstructor
9
{
10
public
:
11
PrintInConstructor(
const
char
* ctor_dtor_message);
12
PrintInConstructor(
const
char
* ctor_message,
const
char
* dtor_message);
13
~PrintInConstructor();
14
15
protected
:
16
void
Initialize(
const
char
* ctor_message,
const
char
* dtor_message);
17
18
public
:
19
std::string destructorMessage_;
20
};
21
#endif //PRINT_IN_CONSTRUCTOR_H_
Utils
PrintInConstructor.h
Generated on Tue Feb 11 2014 00:29:50 for LRT14 by
1.8.3