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
26class APIEXPORT coInt32Param : public coUifPara
27{
28
29private:
32
34 coInt32Param &operator=(const coInt32Param &);
35
38
40 static coUifPara::Typeinfo s_paraType;
41
43 long d_value;
44
45 // Parameter type name
46 static const char *s_type;
47
48public:
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
#define APIEXPORT
Definition: coExport.h:275
GLuint GLfloat * val
Definition: khronos-glext.h:7898
GLuint const GLchar * name
Definition: khronos-glext.h:6722
GLenum type
Definition: khronos-glext.h:6279
std::enable_if< I==sizeof...(Tp), void >::type print(Stream &s, const std::tuple< Tp... > &t)
Definition: tokenbuffer_util.h:68
single integer parameter
Definition: coInt32Param.h:27
long d_value
Port data fields.
Definition: coInt32Param.h:43
static coUifPara::Typeinfo s_paraType
my type info
Definition: coInt32Param.h:40
static const char * s_type
Definition: coInt32Param.h:46