Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
timelineevent.h
Go to the documentation of this file.
1 
18 #ifndef ION_PROFILE_TIMELINEEVENT_H_
19 #define ION_PROFILE_TIMELINEEVENT_H_
20 
21 #include <string>
22 
23 #include "base/integral_types.h"
25 #include "third_party/jsoncpp/include/json/value.h"
26 
29 class TimelineEvent : public TimelineNode {
30  public:
31  TimelineEvent(const std::string& name, const uint32 begin,
32  const uint32 duration, const Json::Value& args);
33 
35  void SetArgs(const Json::Value& args) { args_ = args; }
36 
37  Type GetType() const override { return Type::kEvent; }
38  const Json::Value& GetArgs() const { return args_; }
39  Json::Value& GetArgs() { return args_; }
40 
41  private:
43  Json::Value args_;
44 };
45 
46 #endif // ION_PROFILE_TIMELINEEVENT_H_
Copyright 2016 Google Inc.
Definition: timelineevent.h:29
std::string name
Definition: printer.cc:324
Copyright 2016 Google Inc.
Definition: timelinenode.h:28
Json::Value & GetArgs()
Definition: timelineevent.h:39
Type GetType() const override
Definition: timelineevent.h:37
TimelineEvent(const std::string &name, const uint32 begin, const uint32 duration, const Json::Value &args)
Copyright 2016 Google Inc.
void SetArgs(const Json::Value &args)
Set the argument name and value.
Definition: timelineevent.h:35
const Json::Value & GetArgs() const
Definition: timelineevent.h:38