OpenStudio:utilities
Loading...
Searching...
No Matches
openstudio::AttributeDescription Struct Reference

#include <Attribute.hpp>

Public Member Functions

 AttributeDescription (const std::string &t_name, const std::string &t_displayName, const std::string &t_description, const AttributeValueType &t_validValueType, bool t_required)
 
 AttributeDescription (const std::string &t_name, const std::string &t_displayName, const std::string &t_description, const AttributeValueType &t_validValueType, bool t_required, OSAttributeVariant t_defaultValue)
 
 AttributeDescription (const std::string &t_name, const std::string &t_displayName, const std::string &t_description, const std::vector< AttributeValueType > &t_validValueTypes, bool t_required)
 
 AttributeDescription (const std::string &t_name, const std::string &t_displayName, const std::string &t_description, const std::vector< AttributeValueType > &t_validValueTypes, bool t_required, OSAttributeVariant t_defaultValue)
 

Public Attributes

OSAttributeVariant defaultValue
 
std::string description
 
std::string displayName
 
std::string name
 
bool required
 
std::vector< AttributeValueTypevalidValueTypes
 

Related Symbols

(Note that these are not member symbols.)

using AttributeDescriptionVector = std::vector<AttributeDescription>
 
using OptionalAttributeDescription = boost::optional<AttributeDescription>
 

Detailed Description

AttributeDescription describes what an acceptable Attribute is in a given context.

At this time, it is primarily used in openstudio::analysis::GenericUncertaintyDescription. Note that AttributeDescription was designed to provide the information needed by a UI developer to properly prompt a user for the data needed to create a new Attribute.

Constructor & Destructor Documentation

◆ AttributeDescription() [1/4]

openstudio::AttributeDescription::AttributeDescription ( const std::string & t_name,
const std::string & t_displayName,
const std::string & t_description,
const AttributeValueType & t_validValueType,
bool t_required )

◆ AttributeDescription() [2/4]

openstudio::AttributeDescription::AttributeDescription ( const std::string & t_name,
const std::string & t_displayName,
const std::string & t_description,
const AttributeValueType & t_validValueType,
bool t_required,
OSAttributeVariant t_defaultValue )

◆ AttributeDescription() [3/4]

openstudio::AttributeDescription::AttributeDescription ( const std::string & t_name,
const std::string & t_displayName,
const std::string & t_description,
const std::vector< AttributeValueType > & t_validValueTypes,
bool t_required )

◆ AttributeDescription() [4/4]

openstudio::AttributeDescription::AttributeDescription ( const std::string & t_name,
const std::string & t_displayName,
const std::string & t_description,
const std::vector< AttributeValueType > & t_validValueTypes,
bool t_required,
OSAttributeVariant t_defaultValue )

Friends And Related Symbol Documentation

◆ AttributeDescriptionVector

using AttributeDescriptionVector = std::vector<AttributeDescription>
related

◆ OptionalAttributeDescription

using OptionalAttributeDescription = boost::optional<AttributeDescription>
related

Member Data Documentation

◆ defaultValue

OSAttributeVariant openstudio::AttributeDescription::defaultValue

◆ description

std::string openstudio::AttributeDescription::description

◆ displayName

std::string openstudio::AttributeDescription::displayName

◆ name

std::string openstudio::AttributeDescription::name

◆ required

bool openstudio::AttributeDescription::required

◆ validValueTypes

std::vector<AttributeValueType> openstudio::AttributeDescription::validValueTypes