Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/activemq/activemq-cpp/trunk@690390 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Timothy A. Bish committed Aug 29, 2008
1 parent 9506550 commit 5b9444d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
Expand Up @@ -38,6 +38,11 @@ namespace commands{
class ActiveMQMapMessage :
public ActiveMQMessageBase<cms::MapMessage> {

private:

// Map Structure to hold unmarshalled Map Data
mutable util::PrimitiveMap* map;

public:

const static unsigned char ID_ACTIVEMQMAPMESSAGE = 25;
Expand Down Expand Up @@ -336,11 +341,6 @@ namespace commands{
virtual void checkMapIsUnmarshalled() const
throw ( decaf::lang::exceptions::NullPointerException );

private:

// Map Structure to hold unmarshalled Map Data
mutable util::PrimitiveMap* map;

};

}}}}
Expand Down
Expand Up @@ -43,6 +43,11 @@ namespace commands{
class ActiveMQMessageBase : public T,
public Message,
public core::ActiveMQMessage {
private:

core::ActiveMQAckHandler* ackHandler;
int redeliveryCount;
util::PrimitiveMap properties;

public:

Expand Down Expand Up @@ -228,7 +233,7 @@ namespace commands{
* Acknowledges all consumed messages of the session
* of this consumed message.
*/
virtual void acknowledge(void) const throw( cms::CMSException ) {
virtual void acknowledge() const throw( cms::CMSException ) {
try{
this->getAckHandler()->acknowledgeMessage( this );
}
Expand Down Expand Up @@ -555,7 +560,7 @@ namespace commands{
* Get the Correlation Id for this message
* @return string representation of the correlation Id
*/
virtual std::string getCMSCorrelationID(void) const {
virtual std::string getCMSCorrelationID() const {
return this->getCorrelationId();
}

Expand All @@ -571,7 +576,7 @@ namespace commands{
* Gets the DeliveryMode for this message
* @return DeliveryMode enumerated value.
*/
virtual int getCMSDeliveryMode(void) const {
virtual int getCMSDeliveryMode() const {
return this->isPersistent();
}

Expand Down Expand Up @@ -725,12 +730,6 @@ namespace commands{
this->setType( type );
}

private:

core::ActiveMQAckHandler* ackHandler;
int redeliveryCount;
util::PrimitiveMap properties;

};

}}}}
Expand Down
Expand Up @@ -71,7 +71,7 @@ namespace commands{
* such as its type and value of its elements.
* @return formatted string useful for debugging.
*/
virtual std::string toString() const{
virtual std::string toString() const {
std::ostringstream stream;

stream << "Begin Class = ActiveMQTextMessage" << std::endl;
Expand Down

0 comments on commit 5b9444d

Please sign in to comment.