15 #ifndef CONFIGVARIABLE_H
16 #define CONFIGVARIABLE_H
18 #include "dtoolbase.h"
19 #include "configVariableBase.h"
20 #include "numeric_types.h"
38 INLINE ConfigVariable(
const string &name, ValueType type,
39 const string &description,
int flags);
42 INLINE ConfigVariable(
const string &name);
43 INLINE ~ConfigVariable();
47 INLINE
const string &get_string_value()
const;
48 INLINE
void set_string_value(
const string &value);
49 INLINE
void clear_value();
51 INLINE
int get_num_words()
const;
53 INLINE
bool has_string_word(
int n)
const;
54 INLINE
bool has_bool_word(
int n)
const;
55 INLINE
bool has_int_word(
int n)
const;
56 INLINE
bool has_int64_word(
int n)
const;
57 INLINE
bool has_double_word(
int n)
const;
59 INLINE
string get_string_word(
int n)
const;
60 INLINE
bool get_bool_word(
int n)
const;
61 INLINE
int get_int_word(
int n)
const;
62 INLINE PN_int64 get_int64_word(
int n)
const;
63 INLINE
double get_double_word(
int n)
const;
65 INLINE
void set_string_word(
int n,
const string &value);
66 INLINE
void set_bool_word(
int n,
bool value);
67 INLINE
void set_int_word(
int n,
int value);
68 INLINE
void set_int64_word(
int n, PN_int64 value);
69 INLINE
void set_double_word(
int n,
double value);
72 INLINE
bool is_constructed()
const;
73 void report_unconstructed()
const;
76 #include "configVariable.I"
This is a generic, untyped ConfigVariable.
This class is the base class for both ConfigVariableList and ConfigVariable (and hence for all of the...
A single declaration of a config variable, typically defined as one line in a .prc file...