#include <project_plan.h>

Public Member Functions | |
| std::string | Serialize () const |
| absl::Status | SaveToFile (const std::string &path) const |
| int | FindStep (std::string_view id) const |
| std::vector< const PlanRouteItem * > | ItemsAtStep (std::string_view step) const |
| std::vector< const PlanDecision * > | OpenDecisions () const |
| const PlanMilestone * | CurrentMilestone (std::string_view today) const |
Static Public Member Functions | |
| static ProjectPlan | CreateEmpty (std::string title) |
| static absl::StatusOr< ProjectPlan > | Parse (std::string_view text) |
| static absl::StatusOr< ProjectPlan > | LoadFromFile (const std::string &path) |
Public Attributes | |
| std::string | title |
| std::string | about |
| PlanGoal | goal |
| std::vector< PlanMilestone > | milestones |
| std::vector< PlanRouteStep > | route_steps |
| std::vector< PlanRouteItem > | route_items |
| PlanJson | route_extra = PlanJson::object() |
| std::vector< PlanDecision > | decisions |
| std::vector< PlanReference > | references |
| PlanJson | extra = PlanJson::object() |
Definition at line 106 of file project_plan.h.
|
static |
Definition at line 356 of file project_plan.cc.
References title.
Referenced by yaze::editor::PlanningEditor::DrawNoPlan().
|
static |
Definition at line 362 of file project_plan.cc.
References about, decisions, extra, goal, yaze::core::kProjectPlanSchema, milestones, references, and title.
Referenced by LoadFromFile().
|
static |
Definition at line 399 of file project_plan.cc.
References Parse().
Referenced by yaze::editor::PlanningEditor::Reload().

| std::string yaze::core::ProjectPlan::Serialize | ( | ) | const |
Definition at line 416 of file project_plan.cc.
References about, decisions, yaze::core::PlanGoal::detail, yaze::core::PlanGoal::due, yaze::core::PlanGoal::extra, extra, goal, yaze::core::kProjectPlanSchema, milestones, references, route_extra, route_items, route_steps, yaze::core::PlanGoal::title, and title.
Referenced by SaveToFile().
| absl::Status yaze::core::ProjectPlan::SaveToFile | ( | const std::string & | path | ) | const |
Definition at line 523 of file project_plan.cc.
References Serialize().

| int yaze::core::ProjectPlan::FindStep | ( | std::string_view | id | ) | const |
Definition at line 554 of file project_plan.cc.
References route_steps.
| std::vector< const PlanRouteItem * > yaze::core::ProjectPlan::ItemsAtStep | ( | std::string_view | step | ) | const |
Definition at line 563 of file project_plan.cc.
References route_items.
| std::vector< const PlanDecision * > yaze::core::ProjectPlan::OpenDecisions | ( | ) | const |
Definition at line 574 of file project_plan.cc.
References decisions.
| const PlanMilestone * yaze::core::ProjectPlan::CurrentMilestone | ( | std::string_view | today | ) | const |
Definition at line 590 of file project_plan.cc.
References milestones.
| std::string yaze::core::ProjectPlan::title |
Definition at line 125 of file project_plan.h.
Referenced by CreateEmpty(), Parse(), and Serialize().
| std::string yaze::core::ProjectPlan::about |
Definition at line 126 of file project_plan.h.
Referenced by Parse(), and Serialize().
| PlanGoal yaze::core::ProjectPlan::goal |
Definition at line 127 of file project_plan.h.
Referenced by Parse(), and Serialize().
| std::vector<PlanMilestone> yaze::core::ProjectPlan::milestones |
Definition at line 128 of file project_plan.h.
Referenced by CurrentMilestone(), Parse(), and Serialize().
| std::vector<PlanRouteStep> yaze::core::ProjectPlan::route_steps |
Definition at line 129 of file project_plan.h.
Referenced by FindStep(), yaze::core::anonymous_namespace{project_plan.cc}::ReadRoute(), and Serialize().
| std::vector<PlanRouteItem> yaze::core::ProjectPlan::route_items |
Definition at line 130 of file project_plan.h.
Referenced by ItemsAtStep(), yaze::core::anonymous_namespace{project_plan.cc}::ReadRoute(), and Serialize().
| PlanJson yaze::core::ProjectPlan::route_extra = PlanJson::object() |
Definition at line 131 of file project_plan.h.
Referenced by yaze::core::anonymous_namespace{project_plan.cc}::ReadRoute(), and Serialize().
| std::vector<PlanDecision> yaze::core::ProjectPlan::decisions |
Definition at line 132 of file project_plan.h.
Referenced by OpenDecisions(), Parse(), and Serialize().
| std::vector<PlanReference> yaze::core::ProjectPlan::references |
Definition at line 133 of file project_plan.h.
Referenced by Parse(), and Serialize().
| PlanJson yaze::core::ProjectPlan::extra = PlanJson::object() |
Definition at line 134 of file project_plan.h.
Referenced by Parse(), and Serialize().