libstatic.h 1.7 KB

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