Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
iv::cache::editor::SpecificProjectCache Struct Reference

Specific project cache. More...

#include <structs.hpp>

Collaboration diagram for iv::cache::editor::SpecificProjectCache:
[legend]

Classes

struct  Fields
 

Public Member Functions

 SpecificProjectCache ()=default
 
void write (JSON &cacheJSON) const
 Write cache to JSON.
 
void read (const JSON &cacheJSON)
 Read cache from JSON.
 

Public Attributes

std::optional< std::string > lastDirectoryExportedTo
 
std::optional< std::string > lastImportedFile
 
std::optional< iv::types::unitIdlastSelectedUnitId
 
ControlsEditor controlsEditor
 

Detailed Description

Specific project cache.

Note
Part of the cache with information associated with a specific project

Constructor & Destructor Documentation

◆ SpecificProjectCache()

iv::cache::editor::SpecificProjectCache::SpecificProjectCache ( )
default

Member Function Documentation

◆ read()

void iv::cache::editor::SpecificProjectCache::read ( const JSON & cacheJSON)

Read cache from JSON.

Parameters
cacheJSONJSON (already with the project name key) from which the project cache will be read
Note
If the field is not present in the JSON, the value will not be changed

◆ write()

void iv::cache::editor::SpecificProjectCache::write ( JSON & cacheJSON) const

Write cache to JSON.

Parameters
cacheJSONJSON (already with the project name key) where the project cache will be written

Member Data Documentation

◆ controlsEditor

ControlsEditor iv::cache::editor::SpecificProjectCache::controlsEditor

◆ lastDirectoryExportedTo

std::optional<std::string> iv::cache::editor::SpecificProjectCache::lastDirectoryExportedTo

◆ lastImportedFile

std::optional<std::string> iv::cache::editor::SpecificProjectCache::lastImportedFile

◆ lastSelectedUnitId

std::optional<iv::types::unitId> iv::cache::editor::SpecificProjectCache::lastSelectedUnitId

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