COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Arrayset.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 _ARRAYSET_H
9 #define _ARRAYSET_H
10 
11 /*
12  $Log$
13 */
14 
15 /**************************************************************************\
16  ** (C)1994 RUS **
17  ** **
18  ** Description: Interface class for application modules to the COVISE **
19  ** software environment **
20  ** **
21  ** **
22  ** **
23  ** **
24  ** Author: **
25  ** **
26  ** Dirk Rantzau **
27  ** Computer Center University of Stuttgart **
28  ** Allmandring 30 **
29  ** 70550 Stuttgart **
30  ** **
31  ** Date: 18.05.94 V1.0 **
32 \**************************************************************************/
33 
34 #include <covise/covise.h>
35 
36 #define AL_DLLEXPORT
37 
38 #include <util/coTypes.h>
39 
41 {
42 
43  friend class Covise;
44 
45 private:
46  char tmpbuf[100];
47  char *buf;
48  char *pname;
49  char *rtitle;
50  char *ctitle;
51  int rdim, rcounter;
52  int cdim, ccounter;
55 
56 public:
57  Arrayset(char *name, char *rtitle, char *ctitle, int rdim, int cdim, char *msgbuf);
58  Arrayset(char *msgbuf);
59 
60  //
61  // store
62  //
63  int add_string_param(char *name, char **strings);
64  int add_boolean_param(char *name, int *values);
65  int add_int_scalar_param(char *name, int *values);
66  int add_float_scalar_param(char *name, float *values);
67  int add_choice_param(char *name, int *selected, int num_labels, char **labels);
68  int add_int_slider_param(char *name, int *min, int *max, int *values);
69  int add_float_slider_param(char *name, float *min, float *max, float *values);
70  int finish_and_send();
71 
72  //
73  // retrieval
74  //
75  int get_header(char **rtitle, char **ctitle, int *rdim, int *cdim);
76  int get_next_param(char **name, char **type);
77  int get_boolean_param(int *values);
78  int get_int_scalar_param(int *values);
79  int get_float_scalar_param(float *values);
80  int get_string_param(char **strings);
81  int get_choice_param(int *selected, char **labels);
82  int get_choice_num_labels();
83  int get_int_slider_param(int *min, int *max, int *values);
84  int get_float_slider_param(float *min, float *max, float *values);
85 
86  int current_length();
87 
88  ~Arrayset();
89 };
90 #endif
#define AL_DLLEXPORT
Definition: Arrayset.h:36
int min(int a, int b)
Definition: cutil_math.h:60
GLboolean GLenum GLenum GLvoid * values
Definition: khronos-glext.h:6369
int rdim
Definition: Arrayset.h:51
GLsizei const GLchar *const * strings
Definition: khronos-glext.h:8340
GLenum type
Definition: khronos-glext.h:6279
int num_tokens
Definition: Arrayset.h:54
char * ctitle
Definition: Arrayset.h:50
int cdim
Definition: Arrayset.h:52
char * buf
Definition: Arrayset.h:47
int max(int a, int b)
Definition: cutil_math.h:55
#define APPLEXPORT
Definition: coExport.h:57
int num_labels
Definition: Arrayset.h:53
char * rtitle
Definition: Arrayset.h:49
char * pname
Definition: Arrayset.h:48
GLuint const GLchar * name
Definition: khronos-glext.h:6722
Definition: Arrayset.h:40