Euphoria
eu::core::tracery::Result Struct Reference

#include <tracery.h>

Public Types

enum  Error {
  unable_to_open_file , no_error , json_parse , missing_rule ,
  rule_eof , invalid_json , invalid_modifier , general_rule_parse_error
}
 

Public Member Functions

 Result (Error t)
 
std::string get_text () const
 
Resultoperator<< (const std::string &t)
 
 operator bool () const
 

Public Attributes

Error error_type
 
std::vector< std::string > text
 

Detailed Description

Definition at line 17 of file tracery.h.

Member Enumeration Documentation

◆ Error

Enumerator
unable_to_open_file 
no_error 
json_parse 
missing_rule 
rule_eof 
invalid_json 
invalid_modifier 
general_rule_parse_error 

Definition at line 19 of file tracery.h.

Constructor & Destructor Documentation

◆ Result()

eu::core::tracery::Result::Result ( Error  t)

Definition at line 162 of file tracery.cc.

Member Function Documentation

◆ get_text()

std::string eu::core::tracery::Result::get_text ( ) const

Definition at line 180 of file tracery.cc.

◆ operator bool()

eu::core::tracery::Result::operator bool ( ) const

Definition at line 173 of file tracery.cc.

◆ operator<<()

Result & eu::core::tracery::Result::operator<< ( const std::string &  t)

Definition at line 165 of file tracery.cc.

Member Data Documentation

◆ error_type

Error eu::core::tracery::Result::error_type

Definition at line 31 of file tracery.h.

◆ text

std::vector<std::string> eu::core::tracery::Result::text

Definition at line 32 of file tracery.h.


The documentation for this struct was generated from the following files: