SapBufferWithTrash.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef _SAPBUFFER_WITH_TRASH_H_
  2. #define _SAPBUFFER_WITH_TRASH_H_
  3. // SapBufferWithTrash.h : header file
  4. //
  5. #include "SapClassBasicDef.h"
  6. //
  7. // SapBufferWithTrash class declaration
  8. //
  9. class SAPCLASSBASIC_CLASS SapBufferWithTrash : public SapBuffer
  10. {
  11. public:
  12. // Constructor/Destructor
  13. SapBufferWithTrash(int count = 2, int width = SapDefWidth, int height = SapDefHeight, SapFormat format = SapDefFormat, Type type = SapDefBufferType, SapLocation loc = SapLocation::ServerSystem);
  14. SapBufferWithTrash(int count, ULONG_PTR physAddress[], int width = SapDefWidth, int height = SapDefHeight, SapFormat format = SapDefFormat, Type type = TypeContiguous);
  15. SapBufferWithTrash(int count, void *virtAddress[], int width = SapDefWidth, int height = SapDefHeight, SapFormat format = SapDefFormat, Type type = TypeScatterGather);
  16. SapBufferWithTrash(int count, SapXferNode *pSrcNode, Type type = SapDefBufferType, SapLocation loc = SapLocation::ServerSystem);
  17. SapBufferWithTrash(const char *filename, Type type = SapDefBufferType, SapLocation loc = SapLocation::ServerSystem);
  18. SapBufferWithTrash(int count, const char *bufName, int width = SapDefWidth, int height = SapDefHeight, SapFormat format = SapDefFormat, Type type = TypeScatterGather, SapLocation loc = SapLocation::ServerSystem);
  19. SapBufferWithTrash(int count, const char *bufName, SapXferNode *pSrcNode, Type type = SapDefBufferType, SapLocation loc = SapLocation::ServerSystem);
  20. SapBufferWithTrash(const char *bufName, int startIndex, int count, Type type= TypeVirtual, SapLocation loc = SapLocation::ServerSystem);
  21. SapBufferWithTrash(const SapBuffer &buf);
  22. virtual ~SapBufferWithTrash();
  23. SapBufferWithTrash &operator= (const SapBuffer &buf);
  24. // Module create/destroy
  25. virtual BOOL Create();
  26. virtual BOOL Destroy();
  27. // Access to implementation
  28. virtual CORBUFFER GetTrash() const { return m_hTrash; }
  29. virtual Type GetTrashType() { return m_TrashType;}
  30. virtual BOOL SetTrashType(Type type);
  31. protected:
  32. // Utility methods
  33. virtual void Construct();
  34. protected:
  35. CORBUFFER m_hTrash; // Trash buffer handle
  36. Type m_TrashType; // Trash buffer type
  37. };
  38. #endif // _SAPBUFFER_WITH_TRASH_H_