Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


added network server files
[palacios.git] / misc / network_servers / vtl / config.h
diff --git a/misc/network_servers/vtl/config.h b/misc/network_servers/vtl/config.h
new file mode 100644 (file)
index 0000000..70b902a
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _config
+#define _config
+#include <string>
+#include <iostream>
+#include <fstream>
+#include <map>
+#include <sstream>
+
+using namespace std;
+
+#define MAX_CONFIG_LINE_SIZE 1024
+
+
+struct eqstr {
+  bool operator()(const string s1, const string s2) const {
+    return strcmp(s1.c_str(), s2.c_str()) < 0;
+  }
+};
+
+typedef map<const string, string, eqstr> config_t;
+
+
+int read_config(string conf_file_name, config_t * config);
+
+
+
+#endif