mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Try to minimize dll linkage usage
This commit is contained in:
@@ -35,7 +35,7 @@ public:
|
|||||||
|
|
||||||
/// Main class for deserialization of classes from binary form
|
/// Main class for deserialization of classes from binary form
|
||||||
/// Effectively revesed version of BinarySerializer
|
/// Effectively revesed version of BinarySerializer
|
||||||
class DLL_LINKAGE BinaryDeserializer : public CLoaderBase
|
class BinaryDeserializer : public CLoaderBase
|
||||||
{
|
{
|
||||||
template<typename Ser,typename T>
|
template<typename Ser,typename T>
|
||||||
struct LoadIfStackInstance
|
struct LoadIfStackInstance
|
||||||
@@ -168,7 +168,7 @@ public:
|
|||||||
return version >= what;
|
return version >= what;
|
||||||
};
|
};
|
||||||
|
|
||||||
BinaryDeserializer(IBinaryReader * r);
|
DLL_LINKAGE BinaryDeserializer(IBinaryReader * r);
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
BinaryDeserializer & operator&(T & t)
|
BinaryDeserializer & operator&(T & t)
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public:
|
|||||||
/// Primitives: copy memory into underlying stream (defined in CSaverBase)
|
/// Primitives: copy memory into underlying stream (defined in CSaverBase)
|
||||||
/// Containers: custom overloaded method that decouples class into primitives
|
/// Containers: custom overloaded method that decouples class into primitives
|
||||||
/// VCMI Classes: recursively serialize them via ClassName::serialize( BinarySerializer &, int version) call
|
/// VCMI Classes: recursively serialize them via ClassName::serialize( BinarySerializer &, int version) call
|
||||||
class DLL_LINKAGE BinarySerializer : public CSaverBase
|
class BinarySerializer : public CSaverBase
|
||||||
{
|
{
|
||||||
template<typename Handler>
|
template<typename Handler>
|
||||||
struct VariantVisitorSaver
|
struct VariantVisitorSaver
|
||||||
@@ -126,7 +126,7 @@ public:
|
|||||||
return version >= what;
|
return version >= what;
|
||||||
};
|
};
|
||||||
|
|
||||||
BinarySerializer(IBinaryWriter * w);
|
DLL_LINKAGE BinarySerializer(IBinaryWriter * w);
|
||||||
|
|
||||||
template<typename Base, typename Derived>
|
template<typename Base, typename Derived>
|
||||||
void registerType(const Base * b = nullptr, const Derived * d = nullptr)
|
void registerType(const Base * b = nullptr, const Derived * d = nullptr)
|
||||||
|
|||||||
Reference in New Issue
Block a user