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:
@@ -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,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
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user