UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TextRepres.hpp
1 /* TextRepres.hpp */
2 /* $Id: TextRepres.hpp,v 1.1 2004/06/22 14:23:32 vlad Exp $ */
3 #ifndef __TextRepres_hpp
4 #define __TextRepres_hpp
5 
6 /* just for utility functions */
7 #include <mix/misc.h>
8 
9 /* for exception codes and API */
10 #include <mix/Exceptions.h>
11 
12 
20 {
21 public:
22 
24  TextRepres ();
25 
26 
27  /*
28  * Controlling over parsing results
29  */
30 
33  void set_enlarge_dim_mode (bool bMayEnlarge);
34 
37  bool get_enlarge_dim_mode () const;
38 
39  /*
40  * Implementation in inherited classes is expected
41  */
42 
47  virtual char* check_string (const char* s, int* pDim = NULL) const = 0;
48 
52  virtual char* from_string (const char* s) = 0;
53 
57  virtual char* to_string () const = 0;
58 
59  /*
60  * Utility methods
61  */
62 
64  operator char* () const {
65  return to_string();
66  }
67 
68 protected:
69 
73 
74 };
75 
76 
77 #endif /* TextRepres.hpp */
bool get_enlarge_dim_mode() const
virtual char * from_string(const char *s)=0
void set_enlarge_dim_mode(bool bMayEnlarge)
virtual char * to_string() const =0
Definition: TextRepres.hpp:19
virtual char * check_string(const char *s, int *pDim=NULL) const =0
bool bEnlargeMode
Definition: TextRepres.hpp:72