فهرست منبع

added javadoc to config.h

marius.rescheleit 5 سال پیش
والد
کامیت
f460983cb6
1فایلهای تغییر یافته به همراه18 افزوده شده و 2 حذف شده
  1. 18 2
      daemon/include/config.h

+ 18 - 2
daemon/include/config.h

@@ -6,12 +6,28 @@
 #include <sstream>
 #include <vector>
 
-// loads configurationdata from config.txt
-
+/**
+ * Namespace which loads and holds configuration data
+ */
 namespace Config {
+
+/**
+ * Load data from file into storage
+ *
+ * @param filename the name of the file which holds the data
+ */
 bool init(const std::string &filename);
+
+/**
+ * Load data from file into storage
+ *
+ * @param key get value from storage by key
+ */
 std::string getValue(const std::string &key);
 
+/**
+ * Map which holds the configuration data
+ */
 extern std::map<std::string, std::string> storage;
 }; // namespace Config