23 #include <csutil/hash.h> 24 #include <csgeom/vector2.h> 25 #include <csgeom/vector3.h> 26 #include <iutil/cfgfile.h> 27 #include <csutil/csstring.h> 54 csHash<iOptionsClass *> optionsClasses;
55 csRef<iConfigFile> configFile;
56 csHash<csString, csString> subscriptions;
59 void BuildKey(csString & result,
const char * className,
const char * optionName)
const;
60 void EnsureSubscription(
const char * name);
63 psOptions(
const char * filename, iVFS* vfs);
67 void OnUpdateData(
const char *name,
PAWSData& data);
68 void NewSubscription(
const char *name);
72 double CalcFunction(
MathEnvironment* env,
const char* functionName,
const double* params);
78 void RegisterOptionsClass(
const char * className,
iOptionsClass * optionsClass);
83 void SetOption(
const char * className,
const char * name,
const char * value);
84 void SetOption(
const char * className,
const char * name,
float value);
85 void SetOption(
const char * className,
const char * name,
int value);
86 void SetOption(
const char * className,
const char * name,
bool value);
91 const char * GetOption(
const char * className,
const char * name,
const char * defaultValue);
92 float GetOption(
const char * className,
const char * name,
float defaultValue);
93 int GetOption(
const char * className,
const char * name,
int defaultValue);
94 bool GetOption(
const char * className,
const char * name,
bool defaultValue);
107 #endif // PS_OPTIONS_H
virtual void SaveOptions()=0
This function is called whenever the options system needs the options class to give it its options va...
A specific MathEnvironment to be used in a MathScript.
virtual void LoadOptions()=0
This function is called when the options system has been issued a Save() call.