Commit 4c8b60a8 authored by Ghislain MARY's avatar Ghislain MARY

Add missing symbol exports.

parent e05ceead
......@@ -245,7 +245,7 @@ namespace belcard {
const list<shared_ptr<BelCardProperty>> &getProperties() const;
BELCARD_PUBLIC string& toFoldedString();
bool assertRFCCompliance() const;
BELCARD_PUBLIC bool assertRFCCompliance() const;
virtual void serialize(ostream &output) const;
};
......
......@@ -42,7 +42,7 @@ namespace belcard {
shared_ptr<BelCardLabelParam> _label_param;
public:
static shared_ptr<BelCardAddress> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardAddress> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardAddress();
......
......@@ -31,7 +31,7 @@ using namespace::belr;
namespace belcard {
class BelCardFBURL : public BelCardProperty {
public:
static shared_ptr<BelCardFBURL> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardFBURL> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardFBURL();
......@@ -39,7 +39,7 @@ namespace belcard {
class BelCardCALADRURI : public BelCardProperty {
public:
static shared_ptr<BelCardCALADRURI> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardCALADRURI> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardCALADRURI();
......@@ -47,7 +47,7 @@ namespace belcard {
class BelCardCALURI : public BelCardProperty {
public:
static shared_ptr<BelCardCALURI> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardCALURI> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardCALURI();
......
......@@ -32,7 +32,7 @@ using namespace::belr;
namespace belcard {
class BelCardPhoneNumber : public BelCardProperty {
public:
static shared_ptr<BelCardPhoneNumber> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardPhoneNumber> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardPhoneNumber();
......@@ -40,7 +40,7 @@ namespace belcard {
class BelCardEmail : public BelCardProperty {
public:
static shared_ptr<BelCardEmail> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardEmail> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardEmail();
......@@ -48,7 +48,7 @@ namespace belcard {
class BelCardImpp : public BelCardProperty {
public:
static shared_ptr<BelCardImpp> parse(const string& input) ;
BELCARD_PUBLIC static shared_ptr<BelCardImpp> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BELCARD_PUBLIC BelCardImpp();
......@@ -56,7 +56,7 @@ namespace belcard {
class BelCardLang : public BelCardProperty {
public:
static shared_ptr<BelCardLang> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardLang> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardLang();
......
......@@ -31,7 +31,7 @@ using namespace::belr;
namespace belcard {
class BelCardCategories : public BelCardProperty {
public:
static shared_ptr<BelCardCategories> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardCategories> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardCategories();
......@@ -39,7 +39,7 @@ namespace belcard {
class BelCardNote : public BelCardProperty {
public:
static shared_ptr<BelCardNote> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardNote> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardNote();
......@@ -47,7 +47,7 @@ namespace belcard {
class BelCardProductId : public BelCardProperty {
public:
static shared_ptr<BelCardProductId> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardProductId> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardProductId();
......@@ -55,7 +55,7 @@ namespace belcard {
class BelCardRevision : public BelCardProperty {
public:
static shared_ptr<BelCardRevision> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardRevision> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardRevision();
......@@ -63,7 +63,7 @@ namespace belcard {
class BelCardSound : public BelCardProperty {
public:
static shared_ptr<BelCardSound> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardSound> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardSound();
......@@ -71,7 +71,7 @@ namespace belcard {
class BelCardUniqueId : public BelCardProperty {
public:
static shared_ptr<BelCardUniqueId> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardUniqueId> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BELCARD_PUBLIC BelCardUniqueId();
......@@ -79,7 +79,7 @@ namespace belcard {
class BelCardClientProductIdMap : public BelCardProperty {
public:
static shared_ptr<BelCardClientProductIdMap> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardClientProductIdMap> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardClientProductIdMap();
......@@ -87,7 +87,7 @@ namespace belcard {
class BelCardURL : public BelCardProperty {
public:
static shared_ptr<BelCardURL> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardURL> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardURL();
......
......@@ -31,7 +31,7 @@ using namespace::belr;
namespace belcard {
class BelCardKind : public BelCardProperty {
public:
static shared_ptr<BelCardKind> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardKind> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardKind();
......@@ -39,7 +39,7 @@ namespace belcard {
class BelCardSource : public BelCardProperty {
public:
static shared_ptr<BelCardSource> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardSource> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardSource();
......@@ -47,7 +47,7 @@ namespace belcard {
class BelCardXML : public BelCardProperty {
public:
static shared_ptr<BelCardXML> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardXML> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardXML();
......
......@@ -31,7 +31,7 @@ using namespace::belr;
namespace belcard {
class BelCardTimezone : public BelCardProperty {
public:
static shared_ptr<BelCardTimezone> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardTimezone> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardTimezone();
......@@ -39,7 +39,7 @@ namespace belcard {
class BelCardGeo : public BelCardProperty {
public:
static shared_ptr<BelCardGeo> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardGeo> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardGeo();
......
......@@ -33,7 +33,7 @@ using namespace::belr;
namespace belcard {
class BelCardFullName : public BelCardProperty {
public:
static shared_ptr<BelCardFullName> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardFullName> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BELCARD_PUBLIC BelCardFullName();
......@@ -48,7 +48,7 @@ namespace belcard {
string _suffixes;
public:
static shared_ptr<BelCardName> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardName> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser) ;
BelCardName();
......@@ -73,7 +73,7 @@ namespace belcard {
class BelCardNickname : public BelCardProperty {
public:
static shared_ptr<BelCardNickname> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardNickname> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardNickname();
......@@ -81,7 +81,7 @@ namespace belcard {
class BelCardBirthday : public BelCardProperty {
public:
static shared_ptr<BelCardBirthday> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardBirthday> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardBirthday();
......@@ -89,7 +89,7 @@ namespace belcard {
class BelCardAnniversary : public BelCardProperty {
public:
static shared_ptr<BelCardAnniversary> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardAnniversary> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardAnniversary();
......@@ -97,7 +97,7 @@ namespace belcard {
class BelCardGender : public BelCardProperty {
public:
static shared_ptr<BelCardGender> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardGender> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardGender();
......@@ -105,7 +105,7 @@ namespace belcard {
class BelCardPhoto : public BelCardProperty {
public:
static shared_ptr<BelCardPhoto> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardPhoto> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardPhoto();
......
......@@ -31,7 +31,7 @@ using namespace::belr;
namespace belcard {
class BelCardTitle : public BelCardProperty {
public:
static shared_ptr<BelCardTitle> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardTitle> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardTitle();
......@@ -39,7 +39,7 @@ namespace belcard {
class BelCardRole : public BelCardProperty {
public:
static shared_ptr<BelCardRole> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardRole> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardRole();
......@@ -47,7 +47,7 @@ namespace belcard {
class BelCardLogo : public BelCardProperty {
public:
static shared_ptr<BelCardLogo> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardLogo> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardLogo();
......@@ -55,7 +55,7 @@ namespace belcard {
class BelCardOrganization : public BelCardProperty {
public:
static shared_ptr<BelCardOrganization> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardOrganization> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardOrganization();
......@@ -63,7 +63,7 @@ namespace belcard {
class BelCardMember : public BelCardProperty {
public:
static shared_ptr<BelCardMember> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardMember> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardMember();
......@@ -71,7 +71,7 @@ namespace belcard {
class BelCardRelated : public BelCardProperty {
public:
static shared_ptr<BelCardRelated> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardRelated> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardRelated();
......
......@@ -34,7 +34,7 @@ namespace belcard {
private:
public:
static shared_ptr<BelCardBirthPlace> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardBirthPlace> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardBirthPlace();
......@@ -44,7 +44,7 @@ namespace belcard {
private:
public:
static shared_ptr<BelCardDeathPlace> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardDeathPlace> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardDeathPlace();
......@@ -54,7 +54,7 @@ namespace belcard {
private:
public:
static shared_ptr<BelCardDeathDate> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardDeathDate> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardDeathDate();
......
......@@ -31,7 +31,7 @@ using namespace::belr;
namespace belcard {
class BelCardKey : public BelCardProperty {
public:
static shared_ptr<BelCardKey> parse(const string& input);
BELCARD_PUBLIC static shared_ptr<BelCardKey> parse(const string& input);
static void setHandlerAndCollectors(Parser<shared_ptr<BelCardGeneric>> *parser);
BelCardKey();
......
......@@ -19,11 +19,17 @@
#ifndef belcard_utils_hpp
#define belcard_utils_hpp
#if defined(_MSC_VER)
#define BELCARD_PUBLIC __declspec(dllexport)
#else
#define BELCARD_PUBLIC
#endif
#include <string>
using namespace::std;
string belcard_fold(string input);
string belcard_unfold(string input);
BELCARD_PUBLIC string belcard_fold(string input);
BELCARD_PUBLIC string belcard_unfold(string input);
#endif
\ No newline at end of file
......@@ -19,6 +19,7 @@
#include "belcard/belcard_parser.hpp"
#include "belcard/belcard_utils.hpp"
#include "belcard-tester.hpp"
#include <bctoolbox/tester.h>
#include <iostream>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment