Skip to content
Authors

Class PDGL_cli

ClassList > PDGL_cli

Wrapper class for the PDGL core library functionality.

Public Functions

Type Name
PDGL_cli (const std::string * input, size_t stack_size, size_t seed)
Constructor with all possible configurable items.
PDGL_cli (const std::string * input)
constructor with minimal configurable items.
bool run ()
Run the generation of a word in the configured language.
~PDGL_cli ()
Deconstructor frees C library pointers.

Public Functions Documentation

function PDGL_cli [1/2]

Constructor with all possible configurable items.

PDGL_cli::PDGL_cli (
    const std::string * input,
    size_t stack_size,
    size_t seed
) 

Parameters:

  • input A pointer to a language string containing TOML data.
  • stack_size The size of the stack to configure.
  • seed The seed to use to seed random.

function PDGL_cli [2/2]

constructor with minimal configurable items.

explicit PDGL_cli::PDGL_cli (
    const std::string * input
) 

Parameters:

  • input A pointer to a language string containing TOML data.

function run

Run the generation of a word in the configured language.

bool PDGL_cli::run () 

Returns:

True when successful, false when failure.


function ~PDGL_cli

Deconstructor frees C library pointers.

PDGL_cli::~PDGL_cli () 



The documentation for this class was generated from the following file wrappers/cli/src/main.cpp