ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
reusex::core::ResourceKey Struct Reference

#include <resource_keys.hpp>

Collaboration diagram for reusex::core::ResourceKey:

Public Attributes

std::string id
 "sys:<name>" | "lex:<leksikon_guid>" | "col:<column id>"
std::string label
std::string category
KeyScope scope = KeyScope::part
std::string data_type = "text"
 text | number | enum | multiselect | boolean | date.
std::string unit
 "" when none
std::vector< std::string > options
 enum / multiselect choices
bool editable = true
KeySource source = KeySource::builtin
std::string field
 Storage name: the sys name ("quantity"), the leksikon field name_en ("width_mm") or the user column's display name.
bool integer = false
 Number keys that only take whole numbers (leksikon Integer fields).

Detailed Description

Definition at line 34 of file resource_keys.hpp.

Member Data Documentation

◆ category

std::string reusex::core::ResourceKey::category

Definition at line 37 of file resource_keys.hpp.

◆ data_type

std::string reusex::core::ResourceKey::data_type = "text"

text | number | enum | multiselect | boolean | date.

A multiselect value is a JSON array of option strings (the MaterialEPAS storage form), e.g. ["concrete","steel"].

Definition at line 42 of file resource_keys.hpp.

◆ editable

bool reusex::core::ResourceKey::editable = true

Definition at line 45 of file resource_keys.hpp.

◆ field

std::string reusex::core::ResourceKey::field

Storage name: the sys name ("quantity"), the leksikon field name_en ("width_mm") or the user column's display name.

Never on the wire.

Definition at line 49 of file resource_keys.hpp.

◆ id

std::string reusex::core::ResourceKey::id

"sys:<name>" | "lex:<leksikon_guid>" | "col:<column id>"

Definition at line 35 of file resource_keys.hpp.

◆ integer

bool reusex::core::ResourceKey::integer = false

Number keys that only take whole numbers (leksikon Integer fields).

Definition at line 51 of file resource_keys.hpp.

◆ label

std::string reusex::core::ResourceKey::label

Definition at line 36 of file resource_keys.hpp.

◆ options

std::vector<std::string> reusex::core::ResourceKey::options

enum / multiselect choices

Definition at line 44 of file resource_keys.hpp.

◆ scope

KeyScope reusex::core::ResourceKey::scope = KeyScope::part

Definition at line 38 of file resource_keys.hpp.

◆ source

KeySource reusex::core::ResourceKey::source = KeySource::builtin

Definition at line 46 of file resource_keys.hpp.

◆ unit

std::string reusex::core::ResourceKey::unit

"" when none

Definition at line 43 of file resource_keys.hpp.


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