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

A node in the syntax tree for a HOCON or JSON document. More...

Inheritance diagram for hocon::config_node:
hocon::abstract_config_node hocon::abstract_config_node_value hocon::config_node_include hocon::config_node_path hocon::config_node_single_token hocon::config_node_complex_value hocon::config_node_field hocon::config_node_simple_value hocon::config_node_comment hocon::config_node_array hocon::config_node_concatenation hocon::config_node_object hocon::config_node_root

Public Member Functions

virtual std::string render () const =0
 The original text of the input which was used to form this particular node. More...
 

Detailed Description

A node in the syntax tree for a HOCON or JSON document.

Because this object is immutable, it is safe to use from multiple threads and there's no need for "defensive copies."

Do not implement interface

config_node

; 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 21 of file config_node.hpp.

Member Function Documentation

◆ render()

virtual std::string hocon::config_node::render ( ) const
pure virtual

The original text of the input which was used to form this particular node.

Returns
the original text used to form this node as a String

Implemented in hocon::abstract_config_node.


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