Skip to content

Commit 5288026

Browse files
committed
add windows dll import/export macros to cllazyfile
1 parent 6e8cad2 commit 5288026

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/cllazyfile/instMgrHelper.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef INSTMGRHELPER_H
22
#define INSTMGRHELPER_H
33

4+
#include "sc_export.h"
45
#include <lazyInstMgr.h>
56
#include <instmgr.h>
67

@@ -14,7 +15,7 @@
1415
* This class is used when creating SDAI_Application_instance's and using a lazyInstMgr. It is returned
1516
* by instMgrAdapter. SDAI_Application_instance only uses the GetSTEPentity function.
1617
*/
17-
class mgrNodeHelper: public MgrNodeBase {
18+
class SC_LAZYFILE_EXPORT mgrNodeHelper: public MgrNodeBase {
1819
protected:
1920
lazyInstMgr * _lim;
2021
instanceID _id;
@@ -40,7 +41,7 @@ class mgrNodeHelper: public MgrNodeBase {
4041
* when an instance is looked up, this uses lazyInstMgr to load it, and then returns a pointer to it.
4142
*/
4243

43-
class instMgrAdapter: public InstMgrBase {
44+
class SC_LAZYFILE_EXPORT instMgrAdapter: public InstMgrBase {
4445
protected:
4546
mgrNodeHelper _mn;
4647
public:

src/cllazyfile/lazyDataSectionReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* \sa lazyP21DataSectionReader
1414
* \sa lazyP28DataSectionReader
1515
*/
16-
class lazyDataSectionReader: public sectionReader {
16+
class SC_LAZYFILE_EXPORT lazyDataSectionReader: public sectionReader {
1717
protected:
1818
bool _error, _completelyLoaded;
1919
std::string _sectionIdentifier;

src/cllazyfile/lazyInstMgr.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include "Registry.h"
1313
#include "sc_memmgr.h"
14+
#include "sc_export.h"
1415

1516
#include "judyLArray.h"
1617
#include "judySArray.h"
@@ -20,7 +21,7 @@
2021
class Registry;
2122
class instMgrAdapter;
2223

23-
class lazyInstMgr {
24+
class SC_LAZYFILE_EXPORT lazyInstMgr {
2425
protected:
2526
/** multimap from instance number to instances that it refers to
2627
* \sa instanceRefs_pair

src/cllazyfile/lazyRefs.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include <utility>
77
#include <vector>
88

9+
#include "sc_export.h"
910
#include "lazyTypes.h"
1011
#include "lazyInstMgr.h"
1112
#include "ExpDict.h"
@@ -53,7 +54,7 @@
5354
//TODO what about complex instances? scanning each on disk could be a bitch; should the compositional types be scanned during lazy loading?
5455

5556
//TODO/FIXME in generated code, store ia data in map and eliminate data members that are currently used. modify accessors to use map.
56-
class lazyRefs {
57+
class SC_LAZYFILE_EXPORT lazyRefs {
5758
public:
5859
typedef std::set< instanceID > referentInstances_t;
5960
protected:

0 commit comments

Comments
 (0)