clear_value()

This commit is contained in:
David Rose 2008-10-09 22:52:26 +00:00
parent 09fe2062c2
commit a673b4367a
2 changed files with 14 additions and 0 deletions

View File

@ -102,6 +102,19 @@ set_string_value(const string &string_value) {
_core->make_local_value()->set_string_value(string_value);
}
////////////////////////////////////////////////////////////////////
// Function: ConfigVariable::clear_value
// Access: Published
// Description: Removes the value assigned to this variable, and lets
// its original value (as read from the prc files) show
// through.
////////////////////////////////////////////////////////////////////
INLINE void ConfigVariable::
clear_value() {
nassertv(_core != (ConfigVariableCore *)NULL);
_core->clear_local_value();
}
////////////////////////////////////////////////////////////////////
// Function: ConfigVariable::get_num_words
// Access: Published

View File

@ -46,6 +46,7 @@ PUBLISHED:
INLINE const string &get_string_value() const;
INLINE void set_string_value(const string &value);
INLINE void clear_value();
INLINE int get_num_words() const;