21 #ifndef INCLUDE_OLA_TIMECODE_TIMECODE_H_
22 #define INCLUDE_OLA_TIMECODE_TIMECODE_H_
24 #include <ola/timecode/TimeCodeEnums.h>
35 TimeCode(TimeCodeType type, uint8_t hours, uint8_t minutes,
36 uint8_t seconds, uint8_t frames)
49 TimeCodeType Type()
const {
return m_type; }
50 uint8_t Hours()
const {
return m_hours; }
51 uint8_t Minutes()
const {
return m_minutes; }
52 uint8_t Seconds()
const {
return m_seconds; }
53 uint8_t Frames()
const {
return m_frames; }
55 bool operator==(
const TimeCode &other)
const;
56 bool operator!=(
const TimeCode &other)
const;
58 std::string AsString()
const;
59 friend std::ostream& operator<<(std::ostream &out,
const TimeCode&);
68 static const uint8_t MAX_HOURS = 23;
69 static const uint8_t MAX_MINUTES = 59;
70 static const uint8_t MAX_SECONDS = 59;
74 #endif // INCLUDE_OLA_TIMECODE_TIMECODE_H_
Definition: TimeCode.h:33
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
bool IsValid() const
Definition: TimeCode.cpp:57