From 45fddf64aa6d4cdfb403f21c7627a29d94f6b39f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 24 Jul 2007 08:14:06 +0000 Subject: Changes to PropSet and PropSetFile make wild card suffixes work; evaluate file patterns from the starting PropSet, and add some const corectness. --- include/PropSet.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/PropSet.h b/include/PropSet.h index 4a845c263..91bc7072b 100644 --- a/include/PropSet.h +++ b/include/PropSet.h @@ -42,7 +42,6 @@ protected: } return ret; } - static bool IncludesVar(const char *value, const char *key); public: PropSet *superPS; @@ -52,12 +51,12 @@ public: void Set(const char *keyVal); void Unset(const char *key, int lenKey=-1); void SetMultiple(const char *s); - SString Get(const char *key); - SString GetExpanded(const char *key); - SString Expand(const char *withVars, int maxExpands=100); - int GetInt(const char *key, int defaultValue=0); + SString Get(const char *key) const; + SString GetExpanded(const char *key) const; + SString Expand(const char *withVars, int maxExpands=100) const; + int GetInt(const char *key, int defaultValue=0) const; void Clear(); - char *ToString(); // Caller must delete[] the return value + char *ToString() const; // Caller must delete[] the return value private: // copy-value semantics not implemented -- cgit v1.2.3