Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
timelineframe.h
Go to the documentation of this file.
1 
18 #ifndef ION_PROFILE_TIMELINEFRAME_H_
19 #define ION_PROFILE_TIMELINEFRAME_H_
20 
21 #include <string>
22 
23 #include "base/integral_types.h"
25 #include "third_party/jsoncpp/include/json/value.h"
26 
28 class TimelineFrame : public TimelineEvent {
29  public:
30  TimelineFrame(const std::string& name, uint32 begin, uint32 duration,
31  const Json::Value& args, uint32 frame_number)
32  : TimelineEvent(name, begin, duration, args),
33  frame_number_(frame_number) {}
34 
35  Type GetType() const override { return Type::kFrame; }
36  uint32 GetFrameNumber() const { return frame_number_; }
37 
38  private:
39  uint32 frame_number_;
40 };
41 
42 #endif // ION_PROFILE_TIMELINEFRAME_H_
Copyright 2016 Google Inc.
Definition: timelineevent.h:29
std::string name
Definition: printer.cc:324
Type GetType() const override
Definition: timelineframe.h:35
Copyright 2016 Google Inc.
Definition: timelineframe.h:28
TimelineFrame(const std::string &name, uint32 begin, uint32 duration, const Json::Value &args, uint32 frame_number)
Definition: timelineframe.h:30
uint32 GetFrameNumber() const
Definition: timelineframe.h:36