LuciadCPillar 2023.1.04
luciad::MilitarySymbol::Modifiers Class Referencefinal

Allows enumerating Modifier values and converting them to and from std::string. More...

#include <luciad/symbology/military/MilitarySymbol.h>

Static Public Member Functions

static const std::string & getName (Modifier modifier)
 Returns the name of the given modifier, exactly as it is written in the header. More...
 
static Modifier getValue (const std::string &modifierName)
 Returns the modifier with the given name. More...
 
static const std::vector< Modifier > & getValues ()
 Returns the vector containing all modifiers. More...
 

Detailed Description

Allows enumerating Modifier values and converting them to and from std::string.

Member Function Documentation

◆ getName()

static const std::string & luciad::MilitarySymbol::Modifiers::getName ( Modifier  modifier)
static

Returns the name of the given modifier, exactly as it is written in the header.

Parameters
modifierthe modifier for which the return the name.
Returns
the name of the given modifier, exactly as it is written in the header.

◆ getValue()

static Modifier luciad::MilitarySymbol::Modifiers::getValue ( const std::string &  modifierName)
static

Returns the modifier with the given name.

Parameters
modifierNamethe name of the modifier to return. This name must match the modifier exactly as it is written in the header (see getValue).
Returns
the modifier with the given name.
Exceptions
InvalidArgumentExceptionif there is no modifier with the given name.

◆ getValues()

static const std::vector< Modifier > & luciad::MilitarySymbol::Modifiers::getValues ( )
static

Returns the vector containing all modifiers.

Returns
the vector containing all modifiers.