The SKIRT project
advanced radiative transfer for astrophysics
Static Public Member Functions | List of all members
ConsoleHierarchyCreator Class Referencefinal

#include <ConsoleHierarchyCreator.hpp>

Static Public Member Functions

static std::unique_ptr< Itemcreate (const SchemaDef *schema)
 
static double promptForDouble (string prefix, const DoublePropertyHandler *handler)
 
static vector< double > promptForDoubleList (string prefix, const DoubleListPropertyHandler *handler)
 

Detailed Description

This class offers a static function to create a SMILE dataset representation in memory through user interaction via the console.

Member Function Documentation

◆ create()

static std::unique_ptr< Item > ConsoleHierarchyCreator::create ( const SchemaDef schema)
static

Creates a fresh SMILE dataset for the specified schema definition by asking questions (and receiving answers) via the console, and returns a pointer to the root item of the hierarchy (handing over ownership for the complete hierarchy to the caller). If the hierarchy can't be created due to some error condition the function throws a fatal error.

◆ promptForDouble()

static double ConsoleHierarchyCreator::promptForDouble ( string  prefix,
const DoublePropertyHandler handler 
)
static

Prompts the console user for a double value, using the given message prefix and the information provided by the specified property handler.

◆ promptForDoubleList()

static vector< double > ConsoleHierarchyCreator::promptForDoubleList ( string  prefix,
const DoubleListPropertyHandler handler 
)
static

Prompts the console user for a comma-separated list of double values, using the given message prefix and the information provided by the specified property handler.


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