summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-09-13 18:19:41 +0000
committerMarc Laukien <marc@zeroc.com>2004-09-13 18:19:41 +0000
commite012bfcd0c32c6fd185890aedb5f17e69da8870e (patch)
tree28dd15cd1a91ee0a244078487ed0d7b799364504 /cpp/src/slice2cpp/Gen.cpp
parentadding AMI tests (diff)
downloadice-e012bfcd0c32c6fd185890aedb5f17e69da8870e.tar.bz2
ice-e012bfcd0c32c6fd185890aedb5f17e69da8870e.tar.xz
ice-e012bfcd0c32c6fd185890aedb5f17e69da8870e.zip
Connection.ice
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp30
1 files changed, 13 insertions, 17 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index ea1aca1e251..676012a221c 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -170,12 +170,16 @@ Slice::Gen::generate(const UnitPtr& p)
H << "\n#include <Ice/LocalObjectF.h>";
H << "\n#include <Ice/ProxyF.h>";
H << "\n#include <Ice/ObjectF.h>";
+ H << "\n#include <Ice/Exception.h>";
+ H << "\n#include <Ice/LocalObject.h>";
if(p->usesProxies())
{
- H << "\n#include <Ice/Exception.h>";
- H << "\n#include <Ice/LocalObject.h>";
H << "\n#include <Ice/Proxy.h>";
+ }
+
+ if(p->hasNonLocalClassDefs())
+ {
H << "\n#include <Ice/Object.h>";
H << "\n#include <Ice/Outgoing.h>";
if(p->hasContentsWithMetaData("ami"))
@@ -188,23 +192,9 @@ Slice::Gen::generate(const UnitPtr& p)
H << "\n#include <Ice/IncomingAsync.h>";
}
H << "\n#include <Ice/Direct.h>";
-
+
C << "\n#include <Ice/LocalException.h>";
C << "\n#include <Ice/ObjectFactory.h>";
- C << "\n#include <Ice/BasicStream.h>";
- }
- else if(p->usesNonLocals())
- {
- H << "\n#include <Ice/Exception.h>";
- H << "\n#include <Ice/LocalObject.h>";
-
- C << "\n#include <Ice/BasicStream.h>";
- C << "\n#include <Ice/Object.h>";
- }
- else
- {
- H << "\n#include <Ice/Exception.h>";
- H << "\n#include <Ice/LocalObject.h>";
}
if(p->hasNonLocalExceptions())
@@ -217,6 +207,12 @@ Slice::Gen::generate(const UnitPtr& p)
H << "\n#include <Ice/FactoryTable.h>";
}
+ if(p->usesNonLocals())
+ {
+ C << "\n#include <Ice/BasicStream.h>";
+ C << "\n#include <Ice/Object.h>";
+ }
+
if(_checksum)
{
C << "\n#include <Ice/SliceChecksums.h>";