diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-16 23:30:28 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-10-16 23:30:28 -0400 |
commit | c5115c9a3c8ce6639f37e0b429e0498bb522d913 (patch) | |
tree | 667e48ff6ec80f274c7eafda4e44dceaaaeb342b /libs/pbd/pbd/xml++.h | |
parent | cb3abec9665b7a69702294e5a6ffdd26f54885c3 (diff) |
add export visibility control to libpbd (works thus far on linux/gcc)
Diffstat (limited to 'libs/pbd/pbd/xml++.h')
-rw-r--r-- | libs/pbd/pbd/xml++.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libs/pbd/pbd/xml++.h b/libs/pbd/pbd/xml++.h index bff863e4c6..e6795e5d45 100644 --- a/libs/pbd/pbd/xml++.h +++ b/libs/pbd/pbd/xml++.h @@ -17,6 +17,9 @@ */ +#ifndef __XML_H +#define __XML_H + /* xml++.h * libxml++ and this file are copyright (C) 2000 by Ari Johnson, and * are covered by the GNU Lesser General Public License, which should be @@ -34,8 +37,7 @@ #include <libxml/tree.h> #include <boost/shared_ptr.hpp> -#ifndef __XML_H -#define __XML_H +#include "pbd/libpbd_visibility.h" class XMLTree; class XMLNode; @@ -50,7 +52,7 @@ typedef XMLPropertyList::iterator XMLPropertyIterator; typedef XMLPropertyList::const_iterator XMLPropertyConstIterator; typedef std::map<std::string, XMLProperty*> XMLPropertyMap; -class XMLTree { +class LIBPBD_API XMLTree { public: XMLTree(); XMLTree(const std::string& fn, bool validate = false); @@ -90,7 +92,7 @@ private: int _compression; }; -class XMLNode { +class LIBPBD_API XMLNode { public: XMLNode(const std::string& name); XMLNode(const std::string& name, const std::string& content); @@ -148,7 +150,7 @@ private: void clear_lists (); }; -class XMLProperty { +class LIBPBD_API XMLProperty { public: XMLProperty(const std::string& n, const std::string& v = std::string()); ~XMLProperty(); @@ -162,7 +164,7 @@ private: std::string _value; }; -class XMLException: public std::exception { +class LIBPBD_API XMLException: public std::exception { public: explicit XMLException(const std::string msg) : _message(msg) {} virtual ~XMLException() throw() {} |