1.  
  2. #ifndef TestInterface_h
  3. #define TestInterface_h
  4.  
  5. #ifdef TestLibOpt
  6. #   define DECLSPEC __declspec(dllexport)
  7. #else
  8. #   define DECLSPEC __declspec(dllimport)
  9. #endif
  10.  
  11. class TestInterface;
  12. TestInterface* DECLSPEC Instanciate         (const bool flag, const int num);
  13. void DECLSPEC           Destroy             (TestInterface *f);
  14.  
  15. class DECLSPEC TestInterface {
  16. public:
  17.     /**/                TestInterface       ();
  18.     /**/                ~TestInterface      ();
  19.     virtual bool        get                 (bool &flag, int &num)              = 0;
  20.     virtual bool        set                 (const bool flag, const int num)    = 0;
  21. };
  22.  
  23. typedef TestInterface*  (*Instanciator)     (const bool, const int);
  24. typedef void            (*Destructor)       (TestInterface *);
  25.  
  26. #endif