yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::core::ProjectPlan Class Reference

#include <project_plan.h>

Collaboration diagram for yaze::core::ProjectPlan:

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()
 

Detailed Description

Definition at line 106 of file project_plan.h.

Member Function Documentation

◆ CreateEmpty()

ProjectPlan yaze::core::ProjectPlan::CreateEmpty ( std::string title)
static

Definition at line 356 of file project_plan.cc.

References title.

Referenced by yaze::editor::PlanningEditor::DrawNoPlan().

◆ Parse()

absl::StatusOr< ProjectPlan > yaze::core::ProjectPlan::Parse ( std::string_view text)
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().

◆ LoadFromFile()

absl::StatusOr< ProjectPlan > yaze::core::ProjectPlan::LoadFromFile ( const std::string & path)
static

Definition at line 399 of file project_plan.cc.

References Parse().

Referenced by yaze::editor::PlanningEditor::Reload().

Here is the call graph for this function:

◆ Serialize()

◆ SaveToFile()

absl::Status yaze::core::ProjectPlan::SaveToFile ( const std::string & path) const

Definition at line 523 of file project_plan.cc.

References Serialize().

Here is the call graph for this function:

◆ FindStep()

int yaze::core::ProjectPlan::FindStep ( std::string_view id) const

Definition at line 554 of file project_plan.cc.

References route_steps.

◆ ItemsAtStep()

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.

◆ OpenDecisions()

std::vector< const PlanDecision * > yaze::core::ProjectPlan::OpenDecisions ( ) const

Definition at line 574 of file project_plan.cc.

References decisions.

◆ CurrentMilestone()

const PlanMilestone * yaze::core::ProjectPlan::CurrentMilestone ( std::string_view today) const

Definition at line 590 of file project_plan.cc.

References milestones.

Member Data Documentation

◆ title

std::string yaze::core::ProjectPlan::title

Definition at line 125 of file project_plan.h.

Referenced by CreateEmpty(), Parse(), and Serialize().

◆ about

std::string yaze::core::ProjectPlan::about

Definition at line 126 of file project_plan.h.

Referenced by Parse(), and Serialize().

◆ goal

PlanGoal yaze::core::ProjectPlan::goal

Definition at line 127 of file project_plan.h.

Referenced by Parse(), and Serialize().

◆ milestones

std::vector<PlanMilestone> yaze::core::ProjectPlan::milestones

Definition at line 128 of file project_plan.h.

Referenced by CurrentMilestone(), Parse(), and Serialize().

◆ route_steps

std::vector<PlanRouteStep> yaze::core::ProjectPlan::route_steps

◆ route_items

std::vector<PlanRouteItem> yaze::core::ProjectPlan::route_items

◆ route_extra

PlanJson yaze::core::ProjectPlan::route_extra = PlanJson::object()

◆ decisions

std::vector<PlanDecision> yaze::core::ProjectPlan::decisions

Definition at line 132 of file project_plan.h.

Referenced by OpenDecisions(), Parse(), and Serialize().

◆ references

std::vector<PlanReference> yaze::core::ProjectPlan::references

Definition at line 133 of file project_plan.h.

Referenced by Parse(), and Serialize().

◆ extra

PlanJson yaze::core::ProjectPlan::extra = PlanJson::object()

Definition at line 134 of file project_plan.h.

Referenced by Parse(), and Serialize().


The documentation for this class was generated from the following files: