Search Results for

    Show / Hide Table of Contents

    Class TextWriter

    Useful tool to write many text data

    Inheritance
    Object
    TextWriter
    Inherited Members
    Object::DeleteObject(float timeToLive = 0.0f, bool useGameTime=false)
    Object::DeleteObjectNow()
    Object::Flags
    NonCopyable::NonCopyable()
    NonCopyable::NonCopyable(const NonCopyable& )
    Object::OnDeleteObject()
    NonCopyable::operator=(const NonCopyable& )
    Object::~Object()
    Assembly: FlaxEngine.dll
    File: Engine/Utilities/TextWriter.h
    Syntax
    public class TextWriter<CharType> : public Object, public NonCopyable
    Type Parameters
    CharType

    Constructors

    ~TextWriter()

    Destructor

    Declaration
    public ~TextWriter()

    TextWriter(uint32 capacity=1024)

    Init with default capacity

    Declaration
    public TextWriter(uint32 capacity=1024)
    Parameters
    uint32 capacity

    Initial capacity in bytes

    Methods

    Clear()

    Clear whole data

    Declaration
    public void Clear()

    GetBuffer()

    Gets writer private buffer.

    Declaration
    public MemoryWriteStream* GetBuffer()
    Returns
    MemoryWriteStream

    ToString()

    Gets the string representation of this object.

    Declaration
    public virtual String ToString() const override
    Returns
    String

    Overrides
    Object::ToString()

    Write(const CharType* format, const Args& ... args)

    Format text and write it

    Declaration
    public void Write(const CharType* format, const Args& ... args)
    Parameters
    CharType format

    Args... args

    Type Parameters
    Args

    Write(const CharType* text)

    Write text to the buffer

    Declaration
    public void Write(const CharType* text)
    Parameters
    CharType text

    Data

    Write(const StringBase<CharType>& text)

    Write text to the buffer

    Declaration
    public void Write(const StringBase<CharType>& text)
    Parameters
    StringBase<CharType> text

    Data

    Write(const StringViewBase<CharType>& text)

    Write text to the buffer

    Declaration
    public void Write(const StringViewBase<CharType>& text)
    Parameters
    StringViewBase<CharType> text

    Data

    WriteLine()

    Write line terminator sign

    Declaration
    public std::enable_if<std::is_same<Q, char>::value, void>::type WriteLine()
    Returns
    std::enable_if<std::is_same<Q, char>::value, void>::type

    Type Parameters
    class Q

    WriteLine(const CharType* format, const Args& ... args)

    Format text and write line to the buffer

    Declaration
    public void WriteLine(const CharType* format, const Args& ... args)
    Parameters
    CharType format

    Args... args

    Type Parameters
    Args

    WriteLine(const CharType* text)

    Write single line of text to the buffer

    Declaration
    public void WriteLine(const CharType* text)
    Parameters
    CharType text

    Data

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat