DummyOptions Struct Reference
Collaboration diagram for DummyOptions:

Public Member Functions

 DummyOptions ()
 
void Register (ParseOptions *po)
 

Public Attributes

int32 my_int
 
bool my_bool
 
std::string my_string
 

Detailed Description

Definition at line 25 of file parse-options-test.cc.

Constructor & Destructor Documentation

◆ DummyOptions()

DummyOptions ( )
inline

Definition at line 30 of file parse-options-test.cc.

30  {
31  my_int = 0;
32  my_bool = true;
33  my_string = "default dummy string";
34  }

Member Function Documentation

◆ Register()

void Register ( ParseOptions po)
inline

Definition at line 36 of file parse-options-test.cc.

References ParseOptions::Register().

Referenced by kaldi::UnitTestParseOptions().

36  {
37  po->Register("my-int", &my_int,
38  "An int32 variable in DummyOptions.");
39  po->Register("my-bool", &my_bool,
40  "A Boolean varaible in DummyOptions.");
41  po->Register("my-str", &my_string,
42  "A string varaible in DummyOptions.");
43  }
void Register(const std::string &name, bool *ptr, const std::string &doc)

Member Data Documentation

◆ my_bool

bool my_bool

Definition at line 27 of file parse-options-test.cc.

Referenced by kaldi::UnitTestParseOptions().

◆ my_int

int32 my_int

Definition at line 26 of file parse-options-test.cc.

◆ my_string

std::string my_string

Definition at line 28 of file parse-options-test.cc.

Referenced by kaldi::UnitTestParseOptions().


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