Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
911 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DMEBOOKMARK_H
  7. #define DMEBOOKMARK_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "datamodel/dmelement.h"
  12. #include "movieobjects/timeutils.h"
  13. class CDmeBookmark : public CDmElement
  14. {
  15. DEFINE_ELEMENT( CDmeBookmark, CDmElement );
  16. public:
  17. const char *GetNote() const { return m_Note; }
  18. DmeTime_t GetTime() const { return DmeTime_t( m_Time ); }
  19. DmeTime_t GetDuration() const { return DmeTime_t( m_Duration ); }
  20. void SetNote( const char *pNote ) { m_Note = pNote; }
  21. void SetTime( DmeTime_t time ) { m_Time = time.GetTenthsOfMS(); }
  22. void SetDuration( DmeTime_t duration ) { m_Duration = duration.GetTenthsOfMS(); }
  23. private:
  24. CDmaString m_Note;
  25. CDmaVar< int > m_Time;
  26. CDmaVar< int > m_Duration;
  27. };
  28. #endif // DMEBOOKMARK_H