cpp-hocon  0.3.0
Public Member Functions | List of all members
hocon::config_parseable Class Referenceabstract

An opaque handle to something that can be parsed, obtained from config_include_context. More...

Inheritance diagram for hocon::config_parseable:
hocon::parseable hocon::parseable_file hocon::parseable_not_found hocon::parseable_resources hocon::parseable_string

Public Member Functions

virtual shared_object parse (config_parse_options const &options) const =0
 Parse whatever it is. More...
 
virtual shared_origin origin () const =0
 Returns a config_origin describing the origin of the paresable item. More...
 
virtual config_parse_options const & options () const =0
 Get the initial options, which can be modified then passed to parse(). More...
 

Detailed Description

An opaque handle to something that can be parsed, obtained from config_include_context.

Do not implement this interface; it should only be implemented by the config library. Arbitrary implementations will not work because the library internals assume a specific concrete implementation. Also, this interface is likely to grow new methods over time, so third-party implementations will break.

Definition at line 19 of file config_parseable.hpp.

Member Function Documentation

◆ options()

virtual config_parse_options const& hocon::config_parseable::options ( ) const
pure virtual

Get the initial options, which can be modified then passed to parse().

These options will have the right description, includer, and other parameters already set up.

Returns
the initial options

Implemented in hocon::parseable.

◆ origin()

virtual shared_origin hocon::config_parseable::origin ( ) const
pure virtual

Returns a config_origin describing the origin of the paresable item.

Implemented in hocon::parseable.

◆ parse()

virtual shared_object hocon::config_parseable::parse ( config_parse_options const &  options) const
pure virtual

Parse whatever it is.

The options should come from config_parseable#options() but you could tweak them if you like.

Parameters
optionsparse options, should be based on the ones from config_parseable#options()
Returns
the parsed object

Implemented in hocon::parseable.


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