HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT::Format::CustomWriter Struct Referenceabstract

#include <UT_Format.h>

+ Inheritance diagram for UT::Format::CustomWriter:

Public Member Functions

virtual size_t operator() (const char *begin, const char *end)=0
 
size_t operator() (const char *begin, size_t length)
 pointer+length api More...
 
 CustomWriter ()=default
 
virtual ~CustomWriter ()=default
 

Detailed Description

Base class. This is the only api that Formatter uses. This serves as a template when writing a new Formatter writer for cases that the FileWriter, StreamWriter, and Writer don't cover.

Definition at line 168 of file UT_Format.h.

Constructor & Destructor Documentation

UT::Format::CustomWriter::CustomWriter ( )
default
virtual UT::Format::CustomWriter::~CustomWriter ( )
virtualdefault

Member Function Documentation

virtual size_t UT::Format::CustomWriter::operator() ( const char *  begin,
const char *  end 
)
pure virtual

Write the range of bytes from begin to end, non-inclusive (i.e. don't write out the byte pointed to by end). Return the number of bytes written.

Implemented in UT::Format::Writer.

size_t UT::Format::CustomWriter::operator() ( const char *  begin,
size_t  length 
)
inline

pointer+length api

Definition at line 176 of file UT_Format.h.


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