AOSharedServiceLibrary
safe_app_profile.h
1 /*
2 MIT License Block
3 
4 Copyright (c) 2016 Alex Barry
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12 
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15 
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 THE SOFTWARE.
23 */
24 
25 #include <string>
26 #include <unordered_map>
27 #include <iostream>
28 #include <vector>
29 
30 #include "aossl/core/include/kv_store.h"
31 #include "aossl/profile/include/app_profile.h"
32 
33 #ifndef AOSSL_PROFILE_INCLUDE_SAFE_APP_PROFILE_H_
34 #define AOSSL_PROFILE_INCLUDE_SAFE_APP_PROFILE_H_
35 
36 namespace AOSSL {
37 
39 
43  public:
44  SafeApplicationProfile(int argc, char* argv[]) : \
45  ApplicationProfile(argc, argv) {}
46 
47  SafeApplicationProfile(int argc, char* argv[], std::string app_name, \
48  std::string prof_name) : \
49  ApplicationProfile(argc, argv, app_name, prof_name) {}
50 
51  explicit SafeApplicationProfile(const std::vector<std::string>& args) : \
52  ApplicationProfile(args) {}
53 
54  SafeApplicationProfile(const std::vector<std::string>& args, \
55  std::string app_name, std::string prof_name) : \
56  ApplicationProfile(args, app_name, prof_name) {}
57 
58  SafeApplicationProfile(std::string app_name, std::string prof_name) : \
59  ApplicationProfile(app_name, prof_name) {}
60  virtual ~SafeApplicationProfile() {}
61 };
62 
63 } // namespace AOSSL
64 
65 #endif // AOSSL_PROFILE_INCLUDE_SAFE_APP_PROFILE_H_
Application Session which accepts default configuration values.
Definition: safe_app_profile.h:42
Application Session which manages configuration elements.
Definition: app_profile.h:52
Key Value Store.
Definition: kv_store.h:42
ApplicationProfile(int argc, char *argv[])
Create a new Application Session with Command Line Arguments.
Definition: app_profile.h:68
Definition: cli.h:35