summaryrefslogtreecommitdiff
path: root/src/cont.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cont.h')
-rwxr-xr-xsrc/cont.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/cont.h b/src/cont.h
new file mode 100755
index 0000000..ec97f63
--- /dev/null
+++ b/src/cont.h
@@ -0,0 +1,29 @@
+// class cont declaration. defines a simple data container class.
+
+#ifndef CONT_H
+#define CONT_H
+
+#include "incl.h"
+#include "hmap.h"
+
+using namespace std;
+
+class cont
+{
+protected:
+ map_string map_vals;
+
+public:
+ cont::~cont();
+
+ // small inline methods:
+ void clear_vals()
+ {
+ map_vals.clear();
+ } // removes all values.
+
+ // public methods:
+ virtual string get_val( string s_key ); // get a specific map_vals value.
+};
+
+#endif