DicomServer.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /***************************************************************************
  2. * E-Com Technology Ltd.
  3. *
  4. * ECOMPACS DICOM Utility Libraries
  5. ***************************************************************************/
  6. #ifndef _INCLUDE_DICOM_SERVER_
  7. #define _INCLUDE_DICOM_SERVER_
  8. #pragma warning (disable : 4251)
  9. //////////////////////////////////////////////////////////////////////
  10. // DICOMServer Class
  11. class DICOM_API DICOMServer
  12. {
  13. protected:
  14. static BOOL Inited;
  15. static DDateTime StartTime;
  16. static DDateTime StopTime;
  17. friend BOOL SystemPrepare (void);
  18. public:
  19. DICOMServer ();
  20. virtual ~DICOMServer ();
  21. public:
  22. enum {
  23. Client = 1 << 0,
  24. KillDeadwood = 1 << 1,
  25. Worklist = 1 << 2,
  26. };
  27. static BOOL Prepare (void);
  28. static BOOL Quit (void);
  29. static BOOL StopAllServer (void);
  30. static BOOL IsInited (void) { return Inited; }
  31. static BOOL SetLogFileName (const char * LogFileName);
  32. static BOOL SetLogFileSize (long Size);
  33. static BOOL OpenDatabase (void);
  34. static BOOL CloseDatabase (void);
  35. BOOL StartServer (UINT ServerID, ServerPriority Priority = SERVER_PRIORITY_NORMAL);
  36. BOOL StopServer (UINT ServerID);
  37. BOOL SuspendServer (UINT ServerID);
  38. BOOL ResumeServer (UINT ServerID);
  39. BOOL RestartServer (UINT ServerID);
  40. ServerPriority GetServerPriority (UINT ServerID) const;
  41. ServerStatus GetServerStatus (UINT ServerID) const;
  42. BOOL SetServerPriority (UINT ServerID, ServerPriority Priority);
  43. static const DDateTime * GetStartTime (void) { return &StartTime ; }
  44. static const DDateTime * GetStopTime (void) { return &StopTime ; }
  45. };
  46. #endif