libshared.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #ifndef LIBSHARED_H
  2. #define LIBSHARED_H
  3. #include "libshared_export.h"
  4. namespace libshared {
  5. class Class
  6. {
  7. public:
  8. int method() const;
  9. int LIBSHARED_EXPORT method_exported() const;
  10. int LIBSHARED_DEPRECATED method_deprecated() const;
  11. int LIBSHARED_DEPRECATED_EXPORT method_deprecated_exported() const;
  12. int LIBSHARED_NO_EXPORT method_excluded() const;
  13. static int const data;
  14. static int const LIBSHARED_EXPORT data_exported;
  15. static int const LIBSHARED_NO_EXPORT data_excluded;
  16. };
  17. class LIBSHARED_EXPORT ExportedClass
  18. {
  19. public:
  20. int method() const;
  21. int LIBSHARED_DEPRECATED method_deprecated() const;
  22. int LIBSHARED_NO_EXPORT method_excluded() const;
  23. static int const data;
  24. static int const LIBSHARED_NO_EXPORT data_excluded;
  25. };
  26. class LIBSHARED_NO_EXPORT ExcludedClass
  27. {
  28. public:
  29. int method() const;
  30. int LIBSHARED_EXPORT method_exported() const;
  31. int LIBSHARED_DEPRECATED method_deprecated() const;
  32. int LIBSHARED_DEPRECATED_EXPORT method_deprecated_exported() const;
  33. int LIBSHARED_NO_EXPORT method_excluded() const;
  34. static int const data;
  35. static int const LIBSHARED_EXPORT data_exported;
  36. static int const LIBSHARED_NO_EXPORT data_excluded;
  37. };
  38. int function();
  39. int LIBSHARED_EXPORT function_exported();
  40. int LIBSHARED_DEPRECATED function_deprecated();
  41. int LIBSHARED_DEPRECATED_EXPORT function_deprecated_exported();
  42. int LIBSHARED_NO_EXPORT function_excluded();
  43. extern int const data;
  44. extern int const LIBSHARED_EXPORT data_exported;
  45. extern int const LIBSHARED_NO_EXPORT data_excluded;
  46. } // namespace libshared
  47. LIBSHARED_EXPORT void use_int(int);
  48. #endif