logic : projectsettings loading

loading projectsetting via file

review id = 21

fortune cookie message = in dreams and in life, nothing is impossible
This commit is contained in:
Andreas Stallinger
2014-06-03 17:07:32 +02:00
parent 4ff064cb1d
commit a26f5a52b2
13 changed files with 138 additions and 18 deletions
+2
View File
@@ -1,5 +1,6 @@
#include "utility/ConfigManager.h"
#include "logging/logging.h"
#include "utility/text/TextAccess.h"
std::shared_ptr<ConfigManager> ConfigManager::createAndLoad(const std::shared_ptr<TextAccess> textAccess)
@@ -111,6 +112,7 @@ void ConfigManager::load()
void ConfigManager::save()
{
LOG_ERROR("function: configmanager::save not implemented");
// LOG ("Saving config to file: " + m_filePath)
}
+1 -3
View File
@@ -1,7 +1,6 @@
#ifndef CONFIG_MANAGER_H
#define CONFIG_MANAGER_H
#include <map>
#include <memory>
#include <string>
@@ -31,7 +30,7 @@ public:
private:
ConfigManager(const std::shared_ptr<TextAccess> textAccess);
ConfigManager(const ConfigManager&);
ConfigManager operator=(const ConfigManager&);
void operator=(const ConfigManager&);
void parseSubtree(TiXmlNode* parentElement, const std::string& currentPath);
@@ -39,5 +38,4 @@ private:
std::map<std::string, std::string> m_values;
};
#endif // CONFIG_MANAGER_H
+3
View File
@@ -8,6 +8,7 @@ std::vector<std::string> FileSystem::getSourceFilesFromDirectory(
)
{
std::vector<std::string> files;
if (boost::filesystem::is_directory(path))
{
boost::filesystem::recursive_directory_iterator it(path);
@@ -27,6 +28,7 @@ std::vector<std::string> FileSystem::getSourceFilesFromDirectory(
bool FileSystem::isValidExtension(const std::string& filepath, const std::vector<std::string>& extensions)
{
boost::filesystem::path path(filepath);
for(std::string extension : extensions)
{
if(path.extension() == extension)
@@ -41,3 +43,4 @@ bool FileSystem::exists(const std::string& path)
{
return boost::filesystem::exists(boost::filesystem::path(path));
}
@@ -1,5 +1,7 @@
#include "LogManagerImplementation.h"
#include <algorithm>
LogManagerImplementation::LogManagerImplementation()
{
}