Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef TestInterface_h
- #define TestInterface_h
- #ifdef TestLibOpt
- # define DECLSPEC __declspec(dllexport)
- #else
- # define DECLSPEC __declspec(dllimport)
- #endif
- class TestInterface;
- TestInterface* DECLSPEC Instanciate (const bool flag, const int num);
- void DECLSPEC Destroy (TestInterface *f);
- class DECLSPEC TestInterface {
- public:
- /**/ TestInterface ();
- /**/ ~TestInterface ();
- virtual bool get (bool &flag, int &num) = 0;
- virtual bool set (const bool flag, const int num) = 0;
- };
- typedef TestInterface* (*Instanciator) (const bool, const int);
- typedef void (*Destructor) (TestInterface *);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement