diff --git a/NPLib/Core/NPInputParser.cxx b/NPLib/Core/NPInputParser.cxx index a974c169301a42c1d4902c58a8661c36dac27f29..95ddb6f7340bdebef85b73975b21149aa9090efe 100644 --- a/NPLib/Core/NPInputParser.cxx +++ b/NPLib/Core/NPInputParser.cxx @@ -335,26 +335,23 @@ std::vector<std::string> InputParser::GetAllBlocksToken(){ void InputParser::TreatAliases(){ // Call the alias block - std::vector<NPL::InputBlock*> blocks = GetAllBlockWithToken("Alias"); - // List of token: + std::vector<NPL::InputBlock*> blocks = GetAllBlocksWithToken("Alias"); + // List of token: + // - Action -> take value Split(create new block for each value) or Inplace // - Type -> Specify the type of value Vector/Int/Double/String // - Value -> The list of value to be used - std::vector<std::string> token = {"Action","Type","Value"} + std::vector<std::string> token = {"Action","Type","Value"}; for(unsigned int i = 0 ; i < blocks.size() ; i++){ string alias = blocks[i]->GetMainValue(); - std::string action = blocks->GetString("Action"); - std::vector<std::string> value = blocks->GetVectorString("Value"); + std::string action = blocks[i]->GetString("Action"); + std::vector<std::string> value = blocks[i]->GetVectorString("Value"); for(unsigned int v = 0 ; v < value.size() ; v++){ } } -} -//////////////////////////////////////////////////////////////////////////////// -void InputParser::TreatOneAliases(){ - } //////////////////////////////////////////////////////////////////////////////// void InputParser::ReadFile(std::string filename,bool ExitOnError){ diff --git a/NPLib/Core/NPInputParser.h b/NPLib/Core/NPInputParser.h index 7effe2451a851bc1415c2fbb7a128c36611b0f60..9d2e16db89a2a6c8e00bc8df67460e164bf14a2b 100644 --- a/NPLib/Core/NPInputParser.h +++ b/NPLib/Core/NPInputParser.h @@ -26,6 +26,7 @@ // STL #include<string> #include<vector> +#include<map> // ROOT #include"TVector3.h" @@ -100,7 +101,7 @@ namespace NPL{ public: void ReadFile(std::string filename,bool ExitOnError=true); void TreatAliases(); - void TreatOneAlias(); + void TreatOneAlias(){}; void Dump(); void Print() {Dump();} void Clear();