- MEDCOUPLING_EXPORT RefCountObject();
- MEDCOUPLING_EXPORT RefCountObject(const RefCountObject& other);
- MEDCOUPLING_EXPORT virtual ~RefCountObject();
+ RefCountObject();
+ RefCountObject(const RefCountObject& other);
+ virtual ~RefCountObject();
+ };
+
+ class MEDCOUPLING_EXPORT GlobalDict
+ {
+ public:
+ static GlobalDict *GetInstance();
+ bool hasKey(const std::string& key) const;
+ std::string value(const std::string& key) const;
+ std::vector<std::string> keys() const;
+ void erase(const std::string& key);
+ void clear();
+ void setKeyValue(const std::string& key, const std::string& val);
+ void setKeyValueForce(const std::string& key, const std::string& val);
+ std::string printSelf() const;
+ private:
+ GlobalDict() { }
+ private:
+ static GlobalDict *UNIQUE_INSTANCE;
+ private:
+ std::map<std::string, std::string> _my_map;