You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2006/11/11 19:23:17 UTC

svn commit: r473768 - in /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands: ActiveMQBytesMessage.h BaseCommand.cpp BaseCommand.h

Author: tabish
Date: Sat Nov 11 10:23:16 2006
New Revision: 473768

URL: http://svn.apache.org/viewvc?view=rev&rev=473768
Log:
Updates for planned Openwire Support

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQBytesMessage.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQBytesMessage.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQBytesMessage.h?view=diff&rev=473768&r1=473767&r2=473768
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQBytesMessage.h (original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/ActiveMQBytesMessage.h Sat Nov 11 10:23:16 2006
@@ -74,7 +74,7 @@
          * Get the Correlation Id for this message
          * @return string representation of the correlation Id
          */
-        virtual const char* getCMSCorrelationId(void) const;
+        virtual std::string getCMSCorrelationId(void) const;
 
         /**
          * Sets the Correlation Id used by this message
@@ -122,7 +122,7 @@
          * Gets the CMS Message Id for this Message
          * @return time value
          */
-        virtual const char* getCMSMessageId(void) const;
+        virtual std::string getCMSMessageId(void) const;
       
         /**
          * Sets the CMS Message Id for this message
@@ -158,7 +158,7 @@
          * Gets the CMS Reply To Address for this Message
          * @return Reply To Value
          */
-        virtual const char* getCMSReplyTo(void) const;
+        virtual std::string getCMSReplyTo(void) const;
       
         /**
          * Sets the CMS Reply To Address for this message
@@ -182,7 +182,7 @@
          * Gets the CMS Message Type for this Message
          * @return type value
          */
-        virtual const char* getCMSMessageType(void) const;
+        virtual std::string getCMSMessageType(void) const;
       
         /**
          * Sets the CMS Message Type for this message

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.cpp?view=diff&rev=473768&r1=473767&r2=473768
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.cpp (original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.cpp Sat Nov 11 10:23:16 2006
@@ -40,43 +40,4 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-BaseCommand::~BaseCommand()
-{
-}
-
-////////////////////////////////////////////////////////////////////////////////
-unsigned char BaseCommand::getDataStructureType() const
-{
-    return BaseCommand::ID_BASECOMMAND; 
-}
-
-////////////////////////////////////////////////////////////////////////////////
-const int BaseCommand::getCommandId() const {
-    return commandId;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-int BaseCommand::getCommandId() {
-    return commandId;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-void BaseCommand::setCommandId(int commandId ) {
-    this->commandId = commandId;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-const bool BaseCommand::getResponseRequired() const {
-    return responseRequired;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-bool BaseCommand::getResponseRequired() {
-    return responseRequired;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-void BaseCommand::setResponseRequired(bool responseRequired ) {
-    this->responseRequired = responseRequired;
-}
-
+BaseCommand::~BaseCommand() {}

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.h?view=diff&rev=473768&r1=473767&r2=473768
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.h (original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/commands/BaseCommand.h Sat Nov 11 10:23:16 2006
@@ -19,18 +19,20 @@
 #define _ACTIVEMQ_CONNECTOR_OPENWIRE_COMMANDS_BASECOMMAND_H_
 
 #include <activemq/transport/Command.h>
+#include <activemq/connector/openwire/commands/BaseDataStructure.h>
 
 namespace activemq{
 namespace connector{
 namespace openwire{
 namespace commands{
 
-    class BaseCommand : transport::Command
+    class BaseCommand : public transport::Command,
+                        public BaseDataStructure
     {
     public:
     
         BaseCommand();
-        virtual ~BaseCommand() {}
+        virtual ~BaseCommand();
         
         /**
          * Sets the Command Id of this Message