Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
reps
TextRepFactory.cxx
Go to the documentation of this file.
1
12
#ifdef _MSC_VER
13
// A long identifier warning.
14
#include "msdevstudio/MSconfig.h"
15
#endif
16
17
#include "
reps/TextRepFactory.h
"
18
19
// A list of default TextReps.
20
#include "
reps/TotalTextRep.h
"
21
#include "
reps/FuncChiRep.h
"
22
#include "
reps/FuncParmRep.h
"
23
#include "
reps/AverageTextRep.h
"
24
#include "
reps/BoxTextRep.h
"
25
#include "
reps/UnderflowTextRep.h
"
26
#include "
reps/OverflowTextRep.h
"
27
28
namespace
hippodraw {
29
30
TextRepFactory *
TextRepFactory::s_instance
= 0;
31
32
TextRepFactory::TextRepFactory
()
33
{
34
}
35
36
TextRepFactory
*
TextRepFactory::instance
()
37
{
38
if
(
s_instance
== 0 ) {
39
s_instance
=
new
TextRepFactory
();
40
s_instance
->
initialize
();
41
}
42
43
return
s_instance
;
44
}
45
46
void
TextRepFactory::initialize
()
47
{
48
add
(
new
TotalTextRep
() );
49
add
(
new
FuncChiRep
() );
50
add
(
new
FuncParmRep
() );
51
add
(
new
AverageTextRep
(
Axes::X
) );
52
add
(
new
AverageTextRep
(
Axes::Y
) );
53
add
(
new
BoxTextRep
() );
54
add
(
new
UnderflowTextRep
() );
55
add
(
new
OverflowTextRep
() );
56
}
57
58
}
// namespace hippodraw
Generated for HippoDraw Class Library by