mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
feat: display parsed file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user