This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

TestInterface.h

By: a guest on May 14th, 2012  |  syntax: C++  |  size: 0.78 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data