Skip to content
Snippets Groups Projects
Commit 425b4e01 authored by Anastasia Karachaliou's avatar Anastasia Karachaliou
Browse files

correction of namespace in ConfigurationFile

parent 4278675d
Branches 132-support-postgres-migrations
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@
#include <fstream>
#include <algorithm>
namespace cta { namespace tape { namespace daemon {
namespace cta {
ConfigurationFile::ConfigurationFile(const std::string& path) {
// Try to open the configuration file, throwing an exception if there is a
......@@ -61,4 +61,4 @@ ConfigurationFile::ConfigurationFile(const std::string& path) {
}
}
}}} // namespace cta::tape::daemon
\ No newline at end of file
} // namespace cta
......@@ -21,7 +21,7 @@
#include <map>
#include <string>
namespace cta { namespace tape { namespace daemon {
namespace cta {
struct ConfigurationFile {
public:
ConfigurationFile(const std::string & path);
......@@ -31,4 +31,4 @@ public:
};
std::map<std::string, std::map<std::string, value_t> > entries;
};
}}} // namespace cta::tape::daemon
\ No newline at end of file
} // namespace cta
......@@ -29,7 +29,7 @@ TEST(cta_Daemon, ConfigurationFile) {
"cat1 key1 val1\n"
"cat1 #key2 val2\n"
"cat1 key3 #val3\n");
cta::tape::daemon::ConfigurationFile cf(tf.path());
cta::ConfigurationFile cf(tf.path());
ASSERT_EQ(1, cf.entries.size());
ASSERT_NO_THROW(cf.entries.at("cat1").at("key1"));
ASSERT_EQ("val1", cf.entries.at("cat1").at("key1").value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment