X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=store.cc;h=82e20e67c7c1e0dac7cb4a1358706e811057af19;hb=32b22b42cd974e98e8a56f5ac39a51c8990ef57c;hp=51729e1414e56a667e9d3a8c12eb7df32b242788;hpb=4618e826a4ebe5e60e1d2c419fca7da71657bf9b;p=odcread.git diff --git a/store.cc b/store.cc index 51729e1..82e20e6 100644 --- a/store.cc +++ b/store.cc @@ -2,6 +2,30 @@ namespace odc { +template T join(const A & begin, const A & end, const T &sep) { + T result; + + if (begin != end) { + A it = begin; + result.append(*it); + for (++it; it != end; ++it) { + result.append(sep).append(*it); + } + } + + return result; +} + +std::string TypePath::toString() const { + return join(begin(), end(), std::string("->")); +} + +Store::Store(INTEGER id): d_id(id) {} + +INTEGER Store::getId() { + return d_id; +} + Domain* Store::getDomain() { return 0; }