summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen/framing.0-10
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-07-14 14:32:39 +0000
committerAlan Conway <aconway@apache.org>2009-07-14 14:32:39 +0000
commitffd20ee19a5fd027e0007c27a12dd402dbeca4f8 (patch)
tree82452ea79b23a144d25b34af40de908052b95936 /qpid/cpp/rubygen/framing.0-10
parent1bf6c4e9f0622d855cf794d1b7cbf32c2b2036cb (diff)
downloadqpid-python-ffd20ee19a5fd027e0007c27a12dd402dbeca4f8.tar.gz
Add directory to #include
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@793909 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/framing.0-10')
-rwxr-xr-xqpid/cpp/rubygen/framing.0-10/MethodBodyDefaultVisitor.rb2
-rwxr-xr-xqpid/cpp/rubygen/framing.0-10/Proxy.rb2
-rwxr-xr-x[-rw-r--r--]qpid/cpp/rubygen/framing.0-10/Session.rb2
-rwxr-xr-xqpid/cpp/rubygen/framing.0-10/constants.rb2
-rwxr-xr-x[-rw-r--r--]qpid/cpp/rubygen/framing.0-10/structs.rb7
5 files changed, 7 insertions, 8 deletions
diff --git a/qpid/cpp/rubygen/framing.0-10/MethodBodyDefaultVisitor.rb b/qpid/cpp/rubygen/framing.0-10/MethodBodyDefaultVisitor.rb
index 3bacdbd812..00962de4f9 100755
--- a/qpid/cpp/rubygen/framing.0-10/MethodBodyDefaultVisitor.rb
+++ b/qpid/cpp/rubygen/framing.0-10/MethodBodyDefaultVisitor.rb
@@ -42,7 +42,7 @@ class MethodBodyDefaultVisitorGen < CppGen
cpp_file(@filename) {
include(@filename)
- include("all_method_bodies.h")
+ include("qpid/framing/all_method_bodies.h")
namespace(@namespace) {
@amqp.methods_.each { |m|
genl "void #{@classname}::visit(const #{m.body_name}& b) { defaultVisit(b); }"
diff --git a/qpid/cpp/rubygen/framing.0-10/Proxy.rb b/qpid/cpp/rubygen/framing.0-10/Proxy.rb
index 7e11d62d9b..6e3cb4fd4d 100755
--- a/qpid/cpp/rubygen/framing.0-10/Proxy.rb
+++ b/qpid/cpp/rubygen/framing.0-10/Proxy.rb
@@ -86,7 +86,7 @@ EOS
# .cpp file
cpp_file(@filename) {
include "<sstream>"
- include "#{@classname}.h"
+ include "qpid/framing/#{@classname}.h"
include "qpid/framing/amqp_types_full.h"
methods_on(@amqp, @chassis).each {
|m| include "qpid/framing/"+m.body_name
diff --git a/qpid/cpp/rubygen/framing.0-10/Session.rb b/qpid/cpp/rubygen/framing.0-10/Session.rb
index e681a4a23d..7b92a17f41 100644..100755
--- a/qpid/cpp/rubygen/framing.0-10/Session.rb
+++ b/qpid/cpp/rubygen/framing.0-10/Session.rb
@@ -158,7 +158,7 @@ class SessionNoKeywordGen < CppGen
}}
cpp_file(@file) {
- include @classname
+ include "qpid/client/#{@classname}"
include "qpid/framing/all_method_bodies.h"
include "qpid/client/SessionImpl.h"
include "qpid/client/MessageImpl.h"
diff --git a/qpid/cpp/rubygen/framing.0-10/constants.rb b/qpid/cpp/rubygen/framing.0-10/constants.rb
index fa2031b0ce..ea74c82f73 100755
--- a/qpid/cpp/rubygen/framing.0-10/constants.rb
+++ b/qpid/cpp/rubygen/framing.0-10/constants.rb
@@ -164,7 +164,7 @@ EOS
h_file("#{@dir}/reply_exceptions") {
include "qpid/Exception"
include "qpid/sys/ExceptionHolder"
- include "enum"
+ include "qpid/framing/enum"
include "qpid/CommonImportExport.h"
namespace(@namespace) {
declare_exceptions("execution", "error-code", "SessionException")
diff --git a/qpid/cpp/rubygen/framing.0-10/structs.rb b/qpid/cpp/rubygen/framing.0-10/structs.rb
index 8ea8a91172..823d062dd5 100644..100755
--- a/qpid/cpp/rubygen/framing.0-10/structs.rb
+++ b/qpid/cpp/rubygen/framing.0-10/structs.rb
@@ -462,9 +462,8 @@ EOS
buffer = "/*buffer*/"
end
gen <<EOS
-#include "#{classname}.h"
-
-#include "reply_exceptions.h"
+#include "qpid/framing/#{classname}.h"
+#include "qpid/framing/reply_exceptions.h"
using namespace qpid::framing;
@@ -605,7 +604,7 @@ EOS
structs.each { |s| define_struct(s) }
@amqp.methods_.each { |m| define_struct(m) }
#generate a single include file containing the list of structs for convenience
- h_file("qpid/framing/amqp_structs.h") { structs.each { |s| genl "#include \"#{s.cppname}.h\"" } }
+ h_file("qpid/framing/amqp_structs.h") { structs.each { |s| genl "#include \"qpid/framing/#{s.cppname}.h\"" } }
end
end