qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1176038 - in /qpid/trunk/qpid/cpp/include/qpid: amqp_0_10/Codecs.h console/ClassKey.h
Date Mon, 26 Sep 2011 20:34:38 GMT
Author: chug
Date: Mon Sep 26 20:34:37 2011
New Revision: 1176038

URL: http://svn.apache.org/viewvc?rev=1176038&view=rev
Log:
QPID-3478 VS2010 warning C4251 'needs to have dll interface'
Apply proper class/function DLL member export macros.

Modified:
    qpid/trunk/qpid/cpp/include/qpid/amqp_0_10/Codecs.h
    qpid/trunk/qpid/cpp/include/qpid/console/ClassKey.h

Modified: qpid/trunk/qpid/cpp/include/qpid/amqp_0_10/Codecs.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/include/qpid/amqp_0_10/Codecs.h?rev=1176038&r1=1176037&r2=1176038&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/include/qpid/amqp_0_10/Codecs.h (original)
+++ qpid/trunk/qpid/cpp/include/qpid/amqp_0_10/Codecs.h Mon Sep 26 20:34:37 2011
@@ -34,14 +34,14 @@ namespace amqp_0_10 {
  * Codec for encoding/decoding a map of Variants using the AMQP 0-10
  * map encoding.
  */
-class QPID_COMMON_EXTERN MapCodec
+class QPID_COMMON_CLASS_EXTERN MapCodec
 {
   public:
     typedef qpid::types::Variant::Map ObjectType;
-    static void encode(const ObjectType&, std::string&);
-    static void decode(const std::string&, ObjectType&);
-    static size_t encodedSize(const ObjectType&);
-    static const std::string contentType;
+    static void   QPID_COMMON_EXTERN encode(const ObjectType&, std::string&);
+    static void   QPID_COMMON_EXTERN decode(const std::string&, ObjectType&);
+    static size_t QPID_COMMON_EXTERN encodedSize(const ObjectType&);
+    static const  QPID_COMMON_EXTERN std::string contentType;
   private:
 };
 
@@ -49,14 +49,14 @@ class QPID_COMMON_EXTERN MapCodec
  * Codec for encoding/decoding a list of Variants using the AMQP 0-10
  * list encoding.
  */
-class QPID_COMMON_EXTERN ListCodec
+class QPID_COMMON_CLASS_EXTERN ListCodec
 {
   public:
     typedef qpid::types::Variant::List ObjectType;
-    static void encode(const ObjectType&, std::string&);
-    static void decode(const std::string&, ObjectType&);
-    static size_t encodedSize(const ObjectType&);
-    static const std::string contentType;
+    static void   QPID_COMMON_EXTERN encode(const ObjectType&, std::string&);
+    static void   QPID_COMMON_EXTERN decode(const std::string&, ObjectType&);
+    static size_t QPID_COMMON_EXTERN encodedSize(const ObjectType&);
+    static const  QPID_COMMON_EXTERN std::string contentType;
   private:
 };
 

Modified: qpid/trunk/qpid/cpp/include/qpid/console/ClassKey.h
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/include/qpid/console/ClassKey.h?rev=1176038&r1=1176037&r2=1176038&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/include/qpid/console/ClassKey.h (original)
+++ qpid/trunk/qpid/cpp/include/qpid/console/ClassKey.h Mon Sep 26 20:34:37 2011
@@ -33,24 +33,24 @@ namespace console {
      *
      * \ingroup qmfconsoleapi
      */
-    class QPID_CONSOLE_EXTERN ClassKey {
+    class QPID_CONSOLE_CLASS_EXTERN ClassKey {
     public:
-        static const int HASH_SIZE = 16;
+        QPID_CONSOLE_EXTERN static const int HASH_SIZE = 16;
 
-        ClassKey(const std::string& package, const std::string& name, const uint8_t*
hash);
+        QPID_CONSOLE_EXTERN ClassKey(const std::string& package, const std::string&
name, const uint8_t* hash);
 
-        const std::string& getPackageName() const { return package; }
-        const std::string& getClassName() const { return name; }
-        const uint8_t* getHash() const { return hash; }
-        std::string getHashString() const;
-        std::string str() const;
-        bool operator==(const ClassKey& other) const;
-        bool operator!=(const ClassKey& other) const;
-        bool operator<(const ClassKey& other) const;
-        bool operator>(const ClassKey& other) const;
-        bool operator<=(const ClassKey& other) const;
-        bool operator>=(const ClassKey& other) const;
-        void encode(framing::Buffer& buffer) const;
+        const QPID_CONSOLE_EXTERN std::string& getPackageName() const { return package;
}
+        const QPID_CONSOLE_EXTERN std::string& getClassName() const { return name; }
+        const QPID_CONSOLE_EXTERN uint8_t* getHash() const { return hash; }
+        QPID_CONSOLE_EXTERN std::string getHashString() const;
+        QPID_CONSOLE_EXTERN std::string str() const;
+        QPID_CONSOLE_EXTERN bool operator==(const ClassKey& other) const;
+        QPID_CONSOLE_EXTERN bool operator!=(const ClassKey& other) const;
+        QPID_CONSOLE_EXTERN bool operator<(const ClassKey& other) const;
+        QPID_CONSOLE_EXTERN bool operator>(const ClassKey& other) const;
+        QPID_CONSOLE_EXTERN bool operator<=(const ClassKey& other) const;
+        QPID_CONSOLE_EXTERN bool operator>=(const ClassKey& other) const;
+        QPID_CONSOLE_EXTERN void encode(framing::Buffer& buffer) const;
 
     private:
         std::string package;



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message