fix8  version 1.4.0
Open Source C++ FIX Framework
MyMenu::MenuItem Struct Reference

Individual menu item. More...

Public Member Functions

 MenuItem (char key, const std::string help=std::string())
 
 MenuItem ()=default
 
bool operator() (const MenuItem &a, const MenuItem &b) const
 
 MenuItem (char key, const std::string help=std::string())
 
 MenuItem ()=default
 
bool operator() (const MenuItem &a, const MenuItem &b) const
 

Public Attributes

const char _key = 0
 
const std::string _help
 

Detailed Description

Individual menu item.

Definition at line 156 of file hftest.hpp.

Constructor & Destructor Documentation

MyMenu::MenuItem::MenuItem ( char  key,
const std::string  help = std::string() 
)
inline

Definition at line 161 of file hftest.hpp.

161 : _key(key), _help(help) {}
const std::string _help
Definition: hftest.hpp:159
const char _key
Definition: hftest.hpp:158
bool help()
Definition: harness.cpp:345
MyMenu::MenuItem::MenuItem ( )
default
MyMenu::MenuItem::MenuItem ( char  key,
const std::string  help = std::string() 
)
inline

Definition at line 162 of file myfix.hpp.

162 : _key(key), _help(help) {}
const std::string _help
Definition: hftest.hpp:159
const char _key
Definition: hftest.hpp:158
bool help()
Definition: harness.cpp:345
MyMenu::MenuItem::MenuItem ( )
default

Member Function Documentation

bool MyMenu::MenuItem::operator() ( const MenuItem a,
const MenuItem b 
) const
inline

Definition at line 163 of file hftest.hpp.

References _key.

163 { return a._key < b._key; }
bool MyMenu::MenuItem::operator() ( const MenuItem a,
const MenuItem b 
) const
inline

Definition at line 164 of file myfix.hpp.

References _key.

164 { return a._key < b._key; }

Member Data Documentation

const std::string MyMenu::MenuItem::_help

Definition at line 159 of file hftest.hpp.

const char MyMenu::MenuItem::_key = 0

Definition at line 158 of file hftest.hpp.

Referenced by operator()().


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