diff options
author | Benoit Foucher <benoit@zeroc.com> | 2006-04-12 11:51:15 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2006-04-12 11:51:15 +0000 |
commit | 707df022c7d6d35534fbde27f744af86580ed52a (patch) | |
tree | b9c36fb031eb7e1e86c54a2e83e8fda2c983a3ca /cpp/src/IceGrid/Parser.cpp | |
parent | bug fix (diff) | |
download | ice-707df022c7d6d35534fbde27f744af86580ed52a.tar.bz2 ice-707df022c7d6d35534fbde27f744af86580ed52a.tar.xz ice-707df022c7d6d35534fbde27f744af86580ed52a.zip |
Added support for property sets.
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 40 |
1 files changed, 37 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index faeaa4fb9da..b52e412e879 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -422,6 +422,24 @@ Parser::describeServerTemplate(const list<string>& args) out << nl << "parameters = `" << toString(q->second.parameters) << "'"; out << nl; + + if(!q->second.propertySets.empty()) + { + PropertySetDescriptorDict::const_iterator s; + for(s = q->second.propertySets.begin(); s != q->second.propertySets.end(); ++s) + { + out << nl << "properties `" << s->first << "'"; + out << sb; + out << nl << "references = " << toString(s->second.references); + PropertyDescriptorSeq::const_iterator r; + for(r = s->second.properties.begin(); r != s->second.properties.end(); ++r) + { + out << nl << r->name << " = `" << r->value << "'"; + } + out << eb; + } + } + ServerDescriptorPtr server = ServerDescriptorPtr::dynamicCast(q->second.descriptor); IceBoxDescriptorPtr iceBox = IceBoxDescriptorPtr::dynamicCast(server); if(iceBox) @@ -507,11 +525,27 @@ Parser::describeServiceTemplate(const list<string>& args) { out << "service template `" << templ << "'"; out << sb; - if(!q->second.parameters.empty()) + + out << nl << "parameters = `" << toString(q->second.parameters) << "'"; + out << nl; + + if(!q->second.propertySets.empty()) { - out << nl << "parameters = `" << toString(q->second.parameters) << "'"; + PropertySetDescriptorDict::const_iterator s; + for(s = q->second.propertySets.begin(); s != q->second.propertySets.end(); ++s) + { + out << nl << "properties `" << s->first << "'"; + out << sb; + out << nl << "references = " << toString(s->second.references); + PropertyDescriptorSeq::const_iterator r; + for(r = s->second.properties.begin(); r != s->second.properties.end(); ++r) + { + out << nl << r->name << " = `" << r->value << "'"; + } + out << eb; + } } - out << nl; + ServiceDescriptorPtr desc = ServiceDescriptorPtr::dynamicCast(q->second.descriptor); ServiceHelper(desc).print(out); out << eb; |