mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
dll header
This commit is contained in:
parent
3bb82dd2df
commit
b064b9bbfd
@ -4,7 +4,7 @@
|
||||
namespace ngcore
|
||||
{
|
||||
// BinaryOutArchive ======================================================================
|
||||
class BinaryOutArchive : public Archive
|
||||
class DLL_HEADER BinaryOutArchive : public Archive
|
||||
{
|
||||
size_t ptr = 0;
|
||||
enum { BUFFERSIZE = 1024 };
|
||||
@ -82,7 +82,7 @@ namespace ngcore
|
||||
};
|
||||
|
||||
// BinaryInArchive ======================================================================
|
||||
class BinaryInArchive : public Archive
|
||||
class DLL_HEADER BinaryInArchive : public Archive
|
||||
{
|
||||
std::map<std::string, VersionInfo> vinfo;
|
||||
std::shared_ptr<std::istream> fin;
|
||||
@ -150,7 +150,7 @@ namespace ngcore
|
||||
};
|
||||
|
||||
// TextOutArchive ======================================================================
|
||||
class TextOutArchive : public Archive
|
||||
class DLL_HEADER TextOutArchive : public Archive
|
||||
{
|
||||
std::shared_ptr<std::ostream> fout;
|
||||
public:
|
||||
@ -204,7 +204,7 @@ namespace ngcore
|
||||
};
|
||||
|
||||
// TextInArchive ======================================================================
|
||||
class TextInArchive : public Archive
|
||||
class DLL_HEADER TextInArchive : public Archive
|
||||
{
|
||||
std::map<std::string, VersionInfo> vinfo;
|
||||
std::shared_ptr<std::istream> fin;
|
||||
|
@ -9,7 +9,7 @@ namespace ngcore
|
||||
void SetLibraryVersion(const std::string& library, VersionInfo version);
|
||||
|
||||
class Archive;
|
||||
std::string demangle(const char* typeinfo);
|
||||
DLL_HEADER std::string demangle(const char* typeinfo);
|
||||
|
||||
// create new pointer of type T if it is default constructible, else throw
|
||||
template<typename T>
|
||||
@ -34,7 +34,7 @@ namespace ngcore
|
||||
static constexpr std::false_type check(...);
|
||||
typedef decltype(check<T>(0)) type;
|
||||
public:
|
||||
static constexpr bool value = type::value;
|
||||
DLL_HEADER static constexpr bool value = type::value;
|
||||
};
|
||||
|
||||
// Check if class is archivable
|
||||
@ -49,7 +49,7 @@ namespace ngcore
|
||||
static constexpr std::false_type check(...);
|
||||
typedef decltype(check<T>(nullptr)) type;
|
||||
public:
|
||||
static constexpr bool value = type::value;
|
||||
DLL_HEADER static constexpr bool value = type::value;
|
||||
};
|
||||
|
||||
struct ClassArchiveInfo
|
||||
@ -66,7 +66,7 @@ namespace ngcore
|
||||
};
|
||||
|
||||
// Base Archive class
|
||||
class Archive
|
||||
class DLL_HEADER Archive
|
||||
{
|
||||
bool is_output;
|
||||
// how many different shared_ptr/pointer have been (un)archived
|
||||
@ -454,7 +454,7 @@ namespace ngcore
|
||||
};
|
||||
|
||||
template<typename T, typename ... Bases>
|
||||
class RegisterClassForArchive
|
||||
class DLL_HEADER RegisterClassForArchive
|
||||
{
|
||||
public:
|
||||
RegisterClassForArchive()
|
||||
|
Loading…
Reference in New Issue
Block a user