COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
coStringParam.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef _CO_STRING_PARAM_H_
9 #define _CO_STRING_PARAM_H_
10 
11 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12 // + +
13 // + coStringParam Parameter handling class +
14 // + +
15 // + Andreas Werner +
16 // + (C) Computing Center University of Stuttgart +
17 // + Allmandring 30a +
18 // + 70550 Stuttgart +
19 // + Date: 19.07.99 +
20 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 
22 #include <covise/covise.h>
23 #include "coUifPara.h"
24 
25 namespace covise
26 {
27 
30 {
31 
32 private:
35 
37  coStringParam &operator=(const coStringParam &);
38 
40  coStringParam();
41 
42  // my type info
44 
45  // Port data fields
46  char *d_value;
47 
48  // Parameter type name
49  static const char *s_type;
50 
51 public:
53  coStringParam(const char *name, const char *desc);
54 
56  virtual ~coStringParam();
57 
59  virtual int isOfType(coUifPara::Typeinfo type);
60 
62  static coUifPara::Typeinfo getType();
63 
65  virtual int paramChange();
66 
68  virtual void initialize();
69 
71  virtual void print(ostream &str) const;
72 
74  int setValue(const char *val);
75 
77  const char *getValue() const;
78 
80  virtual const char *getTypeString() const;
81 
83  virtual const char *getValString() const;
84 
86  virtual void setValString(const char *str);
87 };
88 }
89 #endif
Definition: coUifPara.h:23
static coUifPara::Typeinfo s_paraType
Definition: coStringParam.h:43
Implements Covise string parameters.
Definition: coStringParam.h:29
GLuint GLfloat * val
Definition: khronos-glext.h:7898
char * d_value
Definition: coStringParam.h:46
GLenum type
Definition: khronos-glext.h:6279
static const char * s_type
Definition: coStringParam.h:49
#define APIEXPORT
Definition: coExport.h:251
int Typeinfo
Definition: coUifPara.h:28
GLuint const GLchar * name
Definition: khronos-glext.h:6722