Documentation for the ABC Analysis
[cacao.git] / src / vm / properties.hpp
index 4bbdde075c61d4d9b9896d0139f8031ca8bd7640..b10a5a7b3ad4a5631fc5d6a9988ef880d4436b8a 100644 (file)
@@ -53,11 +53,15 @@ class Properties {
 private:
        std::map<const char*, const char*, ltstr> _properties;
 
+private:
+       // Don't allow to copy the properties.
+       Properties(const Properties&);
+
 public:
        Properties();
 
        // Static function.
-       void        put(java_handle_t* p, const char* key, const char* value);
+       static void put(java_handle_t* p, const char* key, const char* value);
 
        void        put(const char* key, const char* value);
        const char* get(const char* key);
@@ -67,13 +71,6 @@ public:
 #endif
 };
 
-#else
-
-typedef struct Properties Properties;
-
-void        Properties_put(const char *key, const char *value);
-const char *Properties_get(const char *key);
-
 #endif
 
 #endif // _PROPERTIES_HPP