summaryrefslogtreecommitdiff
path: root/project2/cli/claOptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'project2/cli/claOptions.h')
-rw-r--r--project2/cli/claOptions.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/project2/cli/claOptions.h b/project2/cli/claOptions.h
new file mode 100644
index 0000000..c669004
--- /dev/null
+++ b/project2/cli/claOptions.h
@@ -0,0 +1,21 @@
+#ifndef CLAOPTIONS_H
+#define CLAOPTIONS_H
+
+#include "../common/optionsSource.h"
+
+class CommandLineArguments : public OptionsSource {
+ public:
+ typedef boost::function<void(const char * const)> Others;
+ CommandLineArguments(int c, const char * const * v, const Others &);
+ void loadInto(const ConfigConsumer & consume, const Options::CurrentPlatform & platform) const;
+ bool needReload() const;
+
+ private:
+ const int argc;
+ const char * const * argv;
+ const Others others;
+ mutable time_t loadedAt;
+};
+
+#endif
+