diff options
author | Matthew Newhook <matthew@zeroc.com> | 2002-01-11 21:15:03 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2002-01-11 21:15:03 +0000 |
commit | 6de445200dc11f8c77e01adf9ef03e0836d858df (patch) | |
tree | da633a30257e78d7e06761f4b77dc7fb7335a659 /cpp/src | |
parent | Initial coding for Secure UDP. (diff) | |
download | ice-6de445200dc11f8c77e01adf9ef03e0836d858df.tar.bz2 ice-6de445200dc11f8c77e01adf9ef03e0836d858df.tar.xz ice-6de445200dc11f8c77e01adf9ef03e0836d858df.zip |
Add {{{id=...}}} for all schema elements
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2xsd/Gen.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/cpp/src/slice2xsd/Gen.cpp b/cpp/src/slice2xsd/Gen.cpp index b9038bcbe22..145672c1a1c 100644 --- a/cpp/src/slice2xsd/Gen.cpp +++ b/cpp/src/slice2xsd/Gen.cpp @@ -117,7 +117,7 @@ Slice::Gen::visitClassDefStart(const ClassDefPtr& p) string scopeId = containedToId(p); // - // Emit exception-name-data + // Emit class-name-data // string startString = "xs:group"; startString += " name=\""; @@ -149,12 +149,15 @@ Slice::Gen::visitClassDefStart(const ClassDefPtr& p) O << sp; // - // Emit exception-name-type + // Emit class-name-type // startString = "xs:complexType"; startString += " name=\""; startString += internalId + scopeId + p->name(); startString += "Type\""; + startString += " id=\""; + startString += p->scoped(); + startString += "\""; start(startString); start("xs:complexContent"); @@ -239,6 +242,9 @@ Slice::Gen::visitExceptionStart(const ExceptionPtr& p) startString += " name=\""; startString += internalId + scopeId + p->name(); startString += "Type\""; + startString += " id=\""; + startString += p->scoped(); + startString += "\""; start(startString); start("xs:annotation"); @@ -282,6 +288,9 @@ Slice::Gen::visitStructStart(const StructPtr& p) startString += " name=\""; startString += internalId + scopeId + p->name(); startString += "Type\""; + startString += " id=\""; + startString += p->scoped(); + startString += "\""; start(startString); // TODO: refactor into method @@ -329,6 +338,9 @@ Slice::Gen::visitEnum(const EnumPtr& p) startString += " name=\""; startString += internalId + scopeId + p->name(); startString += "Type\""; + startString += " id=\""; + startString += p->scoped(); + startString += "\""; start(startString); start("xs:annotation"); @@ -367,6 +379,9 @@ Slice::Gen::visitSequence(const SequencePtr& p) startString += " name=\""; startString += internalId + scopeId + p->name(); startString += "Type\""; + startString += " id=\""; + startString += p->scoped(); + startString += "\""; start(startString); start("xs:sequence"); @@ -422,6 +437,9 @@ Slice::Gen::visitDictionary(const DictionaryPtr& p) startString += " name=\""; startString += internalId + scopeId + p->name(); startString += "Type\""; + startString += " id=\""; + startString += p->scoped(); + startString += "\""; start(startString); start("xs:sequence"); |