A display for a fixed or variable length string field.
More...
#include <dumper.h>
|
|
| StringDisplay (size_t width, std::string open_quote, std::string close_quote) |
| |
|
bool | IsMissing (std::tuple< std::string > &values) override |
| |
|
void | DisplayValue (Dumper &dump, std::tuple< std::string > values) override |
| |
|
bool | IsMissing (std::tuple< offset_t > &values) |
| |
|
void | DisplayValue (Dumper &dump, std::tuple< offset_t > values) |
| |
|
virtual bool | IsMissing (std::tuple< Ts... > &values) |
| | Returns true if the specified value is such that it should not be displayed.
|
| |
|
virtual void | DisplayValue (Dumper &dump, std::tuple< Ts... > values)=0 |
| | Prints the value through the Dumper, different types of fields can be displayed in different ways.
|
| |
|
| static std::shared_ptr< StringDisplay > | Make (size_t width, std::string open_quote, std::string close_quote) |
| | Create a string display.
|
| |
| static std::shared_ptr< StringDisplay > | Make (size_t width, std::string quote="") |
| | Create a string display.
|
| |
| static std::shared_ptr< StringDisplay > | Make (std::string quote="") |
| | Create a string display.
|
| |
|
|
offset_t | width |
| | The width of the string field, exactly this many characters will be shown, unless it is offset_t(-1), then it prints until the first null byte.
|
| |
|
std::string | open_quote |
| |
|
std::string | close_quote |
| |
A display for a fixed or variable length string field.
◆ Make() [1/3]
| static std::shared_ptr< StringDisplay > Dumper::StringDisplay::Make |
( |
size_t | width, |
|
|
std::string | open_quote, |
|
|
std::string | close_quote ) |
|
inlinestatic |
Create a string display.
- Parameters
-
| [in] | width | The exact number of characters to display |
| [in] | open_quote | String to prefix to the string |
| [in] | close_quote | String to sufffix to the string |
- Returns
- A string display
◆ Make() [2/3]
| static std::shared_ptr< StringDisplay > Dumper::StringDisplay::Make |
( |
size_t | width, |
|
|
std::string | quote = "" ) |
|
inlinestatic |
Create a string display.
- Parameters
-
| [in] | width | The exact number of characters to display |
| [in] | quote | String to use to prefix and suffix to the string |
- Returns
- A string display
◆ Make() [3/3]
| static std::shared_ptr< StringDisplay > Dumper::StringDisplay::Make |
( |
std::string | quote = "" | ) |
|
|
inlinestatic |
Create a string display.
- Parameters
-
| [in] | quote | String to use to prefix and suffix to the string |
- Returns
- A string display
The documentation for this class was generated from the following files:
- src/dumper/dumper.h
- src/dumper/dumper.cc