daily pastebin goal
53%
SHARE
TWEET

TestInterface.h

a guest May 14th, 2012 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top