Added namespace to common model instead of vector<string>

This commit is contained in:
Bartek Kryza
2022-02-27 14:20:35 +01:00
parent 57456705bd
commit bee20e7f26
6 changed files with 32 additions and 14 deletions

View File

@@ -54,7 +54,7 @@ public:
std::vector<std::string> get_relative_namespace() const
{
auto relative_ns = namespace_;
util::remove_prefix(relative_ns, using_namespaces_);
util::remove_prefix(relative_ns, using_namespace_);
return relative_ns;
}
@@ -62,7 +62,7 @@ public:
void set_using_namespaces(const std::vector<std::string> &un);
const std::vector<std::string> &using_namespaces() const;
const std::vector<std::string> &using_namespace() const;
std::vector<relationship> &relationships();
@@ -82,7 +82,7 @@ protected:
private:
std::string name_;
std::vector<std::string> namespace_;
std::vector<std::string> using_namespaces_;
std::vector<std::string> using_namespace_;
std::vector<relationship> relationships_;
static std::atomic_uint64_t m_nextId;