api.h
Go to the documentation of this file.
1/*!
2 * \file api.h
3 * \brief API definition of SEIMS modules
4 * \author Junzhi Liu
5 * \date 2011
6 */
7#ifndef SEIMS_MODULE_API_H
8#define SEIMS_MODULE_API_H
9#ifndef SEIMS_MODULE_API
10#ifdef MSVC
11#ifdef MODULE_EXPORTS
12#define SEIMS_MODULE_API __declspec(dllexport)
13#else
14#define SEIMS_MODULE_API __declspec(dllimport)
15#endif
16#else
17#define SEIMS_MODULE_API
18#endif
19
20#include "SimulationModule.h"
21
22//! Get the XML Metadata document string
23extern "C" SEIMS_MODULE_API const char* MetadataInformation();
24
25//! Get the instance of SimulationModule class
26extern "C" SEIMS_MODULE_API SimulationModule* GetInstance();
27
28#endif
29#endif /* SEIMS_MODULE_API_H */
Parent class for all modules in SEIMS.
SEIMS_MODULE_API SimulationModule * GetInstance()
Get the instance of SimulationModule class.
SEIMS_MODULE_API const char * MetadataInformation()
Get the XML Metadata document string.
Base module for all simulation modules in SEIMS.
Definition: SimulationModule.h:46