-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbase_parameter.h
More file actions
40 lines (31 loc) · 935 Bytes
/
base_parameter.h
File metadata and controls
40 lines (31 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef _BASE_PARAMETER_H
#define _BASE_PARAMETER_H
#pragma once
#include "common.h"
class base_parameter
{
public:
base_parameter(void);
~base_parameter(void);
virtual void setprotected(bool b){_protected=b;};
virtual bool isprotected(void){return _protected;};
void sethasvalue(bool b){_hasvalue=b;};
bool hasvalue(void){return _hasvalue;};
size::param_size size(void){return _size;};
int size_flags(void);
virtual unsigned int value(void){return _value;};
virtual void value(unsigned int a){_value=a;sethasvalue(true);};
virtual char *tostr();
virtual base_parameter* copy(){return new base_parameter();};
void parameters(parameters::parameters i){_param=i;};
parameters::parameters parameters(){return _param;};
protected:
char _buffer[20];
void size(size::param_size s){_size=s;};
unsigned int _value;
bool _protected;
bool _hasvalue;
size::param_size _size;
parameters::parameters _param;
};
#endif