summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-09-21 04:26:33 +0000
committerMarc Laukien <marc@zeroc.com>2001-09-21 04:26:33 +0000
commit65ac0257f9f7508f3b2a49df59b38728f8015546 (patch)
tree811567d40f7e51ba47ba3c72b50154004340a158 /cpp/src/slice2cpp
parentevictor modes (diff)
downloadice-65ac0257f9f7508f3b2a49df59b38728f8015546.tar.bz2
ice-65ac0257f9f7508f3b2a49df59b38728f8015546.tar.xz
ice-65ac0257f9f7508f3b2a49df59b38728f8015546.zip
more Slice error detection; Slice enumerator documentation
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 93b0172359e..95ff7ec2e49 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -437,14 +437,14 @@ void
Slice::Gen::TypesVisitor::visitEnum(const EnumPtr& p)
{
string name = p->name();
- StringList enumerators = p->enumerators();
+ EnumeratorList enumerators = p->getEnumerators();
H << sp;
H << nl << "enum " << name;
H << sb;
- StringList::iterator en = enumerators.begin();
+ EnumeratorList::iterator en = enumerators.begin();
while (en != enumerators.end())
{
- H << nl << *en;
+ H << nl << (*en)->name();
if (++en != enumerators.end())
{
H << ',';
@@ -1545,9 +1545,9 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p)
H << nl << exp2 << "static ::std::string __mutating[" << allMutatingOpNames.size() << "];";
H << nl << exp2 << "virtual ::IceInternal::DispatchStatus "
<< "__dispatch(::IceInternal::Incoming&, const ::std::string&);";
- H << nl << exp2 << "virtual bool _isMutating(const ::std::string&);";
+ H << nl << exp2 << "virtual bool __isMutating(const ::std::string&);";
C << sp;
- C << nl << "::std::string " << scoped.substr(2) << "::__all[" << allOpNames.size() << "] =";
+ C << nl << "::std::string " << scoped.substr(2) << "::__all[] =";
C << sb;
q = allOpNames.begin();
while (q != allOpNames.end())
@@ -1560,7 +1560,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p)
}
C << eb << ';';
C << sp;
- C << nl << "::std::string " << scoped.substr(2) << "::__mutating[" << allMutatingOpNames.size() << "] =";
+ C << nl << "::std::string " << scoped.substr(2) << "::__mutating[] =";
C << sb;
q = allMutatingOpNames.begin();
while (q != allMutatingOpNames.end())
@@ -1601,7 +1601,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p)
C << eb;
C << sp;
C << nl << "bool" << nl << scoped.substr(2)
- << "::_isMutating(const ::std::string& s)";
+ << "::__isMutating(const ::std::string& s)";
C << sb;
C << nl << "::std::string* b = __mutating;";
C << nl << "::std::string* e = __mutating + " << allMutatingOpNames.size() << ';';