Energy Core Library
Energy.Core.Configuration Class Reference

Configuration More...

Inheritance diagram for Energy.Core.Configuration:
Energy.Interface.ILoadFromFile

Classes

class  Element
 
class  File
 
class  Option
 

Public Member Functions

bool Load (string file)
 Load from file More...
 
bool Load (Energy.Source.Configuration connection)
 
void Parse (string[] args)
 
Element Select (params string[] array)
 

Static Public Member Functions

static object Create (string[] args, System.Type type, Energy.Core.Shell.OptionStyle style)
 Create configuration object from command line arguments and type with fields decorated Energy.Attribute.Command.Option attributes using specified shell option style. More...
 
static object Create (string[] args, System.Type type)
 Create configuration object from command line arguments and type with fields decorated Energy.Attribute.Command.Option attributes using default command option style. More...
 

Properties

Option.List Options [get, set]
 Arguments More...
 
Element this[string key] [get]
 

Detailed Description

Member Function Documentation

◆ Create() [1/2]

static object Energy.Core.Configuration.Create ( string []  args,
System.Type  type,
Energy.Core.Shell.OptionStyle  style 
)
static

Create configuration object from command line arguments and type with fields decorated Energy.Attribute.Command.Option attributes using specified shell option style.

Parameters
argsCommand line options
typeConfiguration class type
styleCommand line option style settings
Returns
Configuration object

◆ Create() [2/2]

static object Energy.Core.Configuration.Create ( string []  args,
System.Type  type 
)
static

Create configuration object from command line arguments and type with fields decorated Energy.Attribute.Command.Option attributes using default command option style.

Parameters
argsCommand line options
typeConfiguration class type
Returns
Configuration object

◆ Load() [1/2]

bool Energy.Core.Configuration.Load ( string  file)

Load from file

Parameters
filePath to file
Returns
True on read success

Implements Energy.Interface.ILoadFromFile.

◆ Load() [2/2]

bool Energy.Core.Configuration.Load ( Energy.Source.Configuration  connection)

◆ Parse()

void Energy.Core.Configuration.Parse ( string []  args)

◆ Select()

Element Energy.Core.Configuration.Select ( params string []  array)

Property Documentation

◆ Options

Option.List Energy.Core.Configuration.Options
getset

Arguments

◆ this[string key]

Element Energy.Core.Configuration.this[string key]
get

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