#include <widget.h>
Definition at line 42 of file widget.h.
◆ Widget()
Widget::Widget |
( |
int | number, |
|
|
const std::string & | name ) |
◆ ~Widget()
◆ GetCharPtrValue()
void Widget::GetCharPtrValue |
( |
char * | buffer, |
|
|
size_t | max_size ) const |
Definition at line 58 of file widget.cc.
58 {
59
60 strncpy(buffer, name_.c_str(), max_size-1);
61 buffer[max_size-1] = '\0';
62 return;
63}
◆ GetFloatValue()
float Widget::GetFloatValue |
( |
| ) |
const |
Definition at line 46 of file widget.cc.
46 {
47 return number_;
48}
◆ GetIntValue()
int Widget::GetIntValue |
( |
| ) |
const |
Definition at line 50 of file widget.cc.
50 {
51 return static_cast<int>(number_);
52}
◆ GetStringValue()
std::string Widget::GetStringValue |
( |
| ) |
const |
Definition at line 54 of file widget.cc.
54 {
55 return name_;
56}
The documentation for this class was generated from the following files:
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.h
- libraries/fc/include/fc/crypto/webauthn_json/thirdparty/gtest/googletest/xcode/Samples/FrameworkSample/widget.cc