diff --git a/src/config/parse.cpp b/src/config/parse.cpp index bd63071..8bb8666 100644 --- a/src/config/parse.cpp +++ b/src/config/parse.cpp @@ -26,8 +26,16 @@ namespace config void display(TOMLMap *config) { std::cout << "printing config:" << std::endl; - std::cout << "name: " << *(*config)["name"]->toString() << std::endl; - std::cout << "port: " << *(*config)["port"]->toString() << std::endl; + + TOMLMap::iterator it; + for (it = config->begin(); it != config->end(); ++it) + { + std::cout << it->first + << ": " + << *(it->second->toString()) + << std::endl; + } + } }