00001 #include "configuration.h"
00002
00003 namespace n2nc {
00004
00005
00006
00007 ConfigurationOpt::ConfigurationOpt(std::string first, std::string second){
00008 this->m_first = first ;
00009 this->m_second = second ;
00010 }
00011 ConfigurationOpt::ConfigurationOpt(const ConfigurationOpt & opt){
00012 this->m_first = opt.m_first ;
00013 this->m_second = opt.m_second ;
00014 }
00015 ConfigurationOpt::~ConfigurationOpt(){
00016 }
00017 void ConfigurationOpt::setValue(std::string value){
00018 this->m_second = value ;
00019 }
00020
00021
00022 ConfigurationCtx::ConfigurationCtx(std::string name){
00023 this->m_name = name ;
00024 }
00025 ConfigurationCtx & n2nc::Configuration::operator[](std::string ctxname){
00026 return this->m_contexts2.find(ctxname)->second ;
00027 }
00028
00029 ConfigurationCtx::~ConfigurationCtx(){
00030 }
00031 bool ConfigurationCtx::addOption(const ConfigurationOpt & opt){
00032 ConfigurationOpt opt1("fis","fa");
00033 ConfigurationOpt opt2 = opt1 ;
00034
00035
00036 }
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047 Configuration::Configuration(){
00048 }
00049
00050
00051 Configuration::~Configuration(){
00052 }
00053
00054 bool Configuration::addContext(const ConfigurationCtx &ctx){
00055 this->m_contexts2.insert(std::pair<std::string,ConfigurationCtx>("ssdf",ctx));
00056 }
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070 }
00071
00072
00073
00074
00075
00076