00001 #include "Plugin.h" 00002 00003 namespace Elve { 00004 Plugin::Plugin() : mOpts("plugin options"), mVMap(nullptr) 00005 { 00006 00007 } 00008 00009 void Plugin::configPath(const std::string& path) 00010 { 00011 mConfigPath = path; 00012 } 00013 00014 const std::string& Plugin::configPath() const 00015 { 00016 return mConfigPath; 00017 } 00018 00019 void Plugin::basePath(const QString& path) { 00020 mBasePath = path; 00021 } 00022 00023 const QString& Plugin::basePath()const { 00024 return mBasePath; 00025 } 00026 00027 po::options_description& Plugin::opts() { 00028 return mOpts; 00029 } 00030 00031 void Plugin::set_vmap(const po::variables_map* map) { 00032 mVMap = map; 00033 } 00034 00035 bool Plugin::is_set(const std::string& opt) const { 00036 return mVMap && mVMap->count(opt); 00037 } 00038 00039 po::positional_options_description& Plugin::pods() 00040 { 00041 return mPods; 00042 } 00043 }