C++ main module for gpm Package  1.0
GPM_Object.h
Go to the documentation of this file.
1 #ifndef GPM_Object_H
2 #define GPM_Object_H
3 
4 #include "CORE_Object.h"
5 #include "CORE_ListPointers.h"
6 
7 #include "GPM_Types.h"
8 
9 #include "CORE_Exception.h"
10 
17 class GPM_Object : public virtual CORE_Object {
18  SP_OBJECT(GPM_Object);
19  // ATTRIBUTES
20 
21 private:
22 
23 
24  // ASSOCIATIONS
25 
26 
27 protected:
28  // METHODS
29 
30  // CONSTRUCTORS
31 
33  GPM_Object(void);
34 
35 
36 
37  // DESTRUCTORS
38 
39 
42  virtual ~GPM_Object(void);
43 
44 
45 public:
46 
47  // SET methods
48 
49  // GET methods
52  static void turnBodyTextToLine(tString& bdy) {
53  //replace \n --> \newline
54  //replace \t --> \newtab
55  CORE_String::replaceAll(bdy,"\n","\\newline");
56  CORE_String::replaceAll(bdy,"\t","\\newtab");
57 
58  }
59 
62  static void turnBodyLineToText(tString& bdy) {
63  CORE_String::replaceAll(bdy,"\\newline","\n");
64  CORE_String::replaceAll(bdy,"\\newtab","\t");
65  }
66 
67 };
68 
69 #endif
void replaceAll(const tString &strToReplace, const tString &str)
replace all instances of strToReplace by str
Definition: CORE_String.h:215
DEFINE_SPTR(GPM_Object)
virtual ~GPM_Object(void)
destroy an object.
Definition: GPM_Object.cpp:9
static void turnBodyLineToText(tString &bdy)
Definition: GPM_Object.h:62
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:36
GPM_Object(void)
create an object
Definition: GPM_Object.cpp:3
static void turnBodyTextToLine(tString &bdy)
Definition: GPM_Object.h:52
This class is the base class of all graph classes.
Definition: GPM_Object.h:17