COVISE Core
coInt32Param.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_INT_SCALAR_PARAM_H_
9 #define _CO_INT_SCALAR_PARAM_H_
10 
11 // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
12 // + +
13 // + coInt32Param 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 
26 class APIEXPORT coInt32Param : public coUifPara
27 {
28 
29 private:
31  coInt32Param(const coInt32Param &);
32 
34  coInt32Param &operator=(const coInt32Param &);
35 
37  coInt32Param();
38 
40  static coUifPara::Typeinfo s_paraType;
41 
43  long d_value;
44 
45  // Parameter type name
46  static const char *s_type;
47 
48 public:
50  coInt32Param(const char *name, const char *desc);
51 
53  virtual ~coInt32Param();
54 
56  virtual int isOfType(coUifPara::Typeinfo type);
57 
59  static coUifPara::Typeinfo getType();
60 
62  virtual int paramChange();
63 
65  virtual void initialize();
66 
68  virtual void print(ostream &str) const;
69 
71  int setValue(long val);
72 
74  long getValue() const;
75 
77  virtual const char *getTypeString() const;
78 
80  virtual const char *getValString() const;
81 
83  virtual void setValString(const char *str);
84 };
85 #endif
GLuint GLfloat * val
Definition: khronos-glext.h:7898
GLenum type
Definition: khronos-glext.h:6279
static coUifPara::Typeinfo s_paraType
my type info
Definition: coInt32Param.h:40
single integer parameter
Definition: coInt32Param.h:26
long d_value
Port data fields.
Definition: coInt32Param.h:43
std::enable_if< I==sizeof...(Tp), void >::type print(Stream &s, const std::tuple< Tp... > &t)
Definition: tokenbuffer_util.h:68
#define APIEXPORT
Definition: coExport.h:275
static const char * s_type
Definition: coInt32Param.h:46
GLuint const GLchar * name
Definition: khronos-glext.h:6722