SkylightMng.h 396 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. class CSkylightMng
  3. {
  4. private:
  5. CSkylightMng();
  6. ~CSkylightMng();
  7. public:
  8. // ÅжÏÊÇ·ñÊÇÌì´°
  9. BOOL IsSkylight(SYSTEMTIME* pstTime = nullptr);
  10. BOOL IsSkylight(COleDateTime* pdtTime);
  11. BOOL IsSkylight(CTime* ptmTime);
  12. public:
  13. static inline CSkylightMng* GetInstance()
  14. {
  15. return &m_pInstance;
  16. }
  17. private:
  18. static CSkylightMng m_pInstance;
  19. };