RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Dumper::StringDisplay Class Reference

A display for a fixed or variable length string field. More...

#include <dumper.h>

Inheritance diagram for Dumper::StringDisplay:
Dumper::Display< std::string >

Public Member Functions

 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)
 
- Public Member Functions inherited from Dumper::Display< std::string >
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 Public Member Functions

static std::shared_ptr< StringDisplayMake (size_t width, std::string open_quote, std::string close_quote)
 
static std::shared_ptr< StringDisplayMake (size_t width, std::string quote="")
 
static std::shared_ptr< StringDisplayMake (std::string quote="")
 

Public Attributes

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
 

Detailed Description

A display for a fixed or variable length string field.


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