X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fgetopt.h;fp=source%2Fcore%2Fgetopt.h;h=59c810c5e4a5ff4182cd42d9736f8af9d708eae9;hp=cdf5ee3a7e9706137d5c928674fdcfa278a4a0b5;hb=5d3a5019399f97af0371f4fd6dc415d36de6ac3a;hpb=5d51c374869f13f762039f58c03f3c5d75c12f07 diff --git a/source/core/getopt.h b/source/core/getopt.h index cdf5ee3..59c810c 100644 --- a/source/core/getopt.h +++ b/source/core/getopt.h @@ -6,11 +6,12 @@ #include #include #include +#include "mspcore_api.h" #include "noncopyable.h" namespace Msp { -class usage_error: public std::runtime_error +class MSPCORE_API usage_error: public std::runtime_error { private: std::string m_help; @@ -58,7 +59,7 @@ A built-in --help option is provided and will output a list of options, arguments and their associated help texts. An application may override this by providing its own option with the same name. */ -class GetOpt: private NonCopyable +class MSPCORE_API GetOpt: private NonCopyable { public: enum ArgType @@ -68,7 +69,7 @@ public: REQUIRED_ARG }; - class Option + class MSPCORE_API Option { protected: Option() = default; @@ -88,7 +89,7 @@ public: virtual unsigned get_seen_count() const = 0; }; - class Argument + class MSPCORE_API Argument { protected: Argument() = default;