Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ObjectFileTextBlock Class Referenceabstract

Interface for object file text blocks to implement. More...

#include <ObjectFile.h>

+ Inheritance diagram for Leviathan::ObjectFileTextBlock:

Public Member Functions

virtual DLLEXPORT ~ObjectFileTextBlock ()
 
virtual DLLEXPORT void AddTextLine (const std::string &line)=0
 Adds an UTF8 encoded line. More...
 
virtual DLLEXPORT size_t GetLineCount () const =0
 Returns the number of text lines. More...
 
virtual DLLEXPORT const std::string & GetLine (size_t index) const =0
 Gets a line from index \except ExceptionInvalidArgument when the index is out of bounds. More...
 
virtual DLLEXPORT const std::string & GetName () const =0
 Gets the name of this text block. More...
 

Protected Member Functions

 ObjectFileTextBlock ()
 

Detailed Description

Interface for object file text blocks to implement.

See also
ObjectFileListProper

Definition at line 71 of file ObjectFile.h.

Constructor & Destructor Documentation

◆ ~ObjectFileTextBlock()

DLLEXPORT Leviathan::ObjectFileTextBlock::~ObjectFileTextBlock ( )
virtual

Definition at line 508 of file ObjectFile.cpp.

508  {
509 
510 }

◆ ObjectFileTextBlock()

Leviathan::ObjectFileTextBlock::ObjectFileTextBlock ( )
inlineprotected

Definition at line 93 of file ObjectFile.h.

93  {
94  };

Member Function Documentation

◆ AddTextLine()

virtual DLLEXPORT void Leviathan::ObjectFileTextBlock::AddTextLine ( const std::string &  line)
pure virtual

Adds an UTF8 encoded line.

Implemented in Leviathan::ObjectFileTextBlockProper.

◆ GetLine()

virtual DLLEXPORT const std::string& Leviathan::ObjectFileTextBlock::GetLine ( size_t  index) const
pure virtual

Gets a line from index \except ExceptionInvalidArgument when the index is out of bounds.

See also
GetLineCount

Implemented in Leviathan::ObjectFileTextBlockProper.

◆ GetLineCount()

virtual DLLEXPORT size_t Leviathan::ObjectFileTextBlock::GetLineCount ( ) const
pure virtual

Returns the number of text lines.

Implemented in Leviathan::ObjectFileTextBlockProper.

◆ GetName()

virtual DLLEXPORT const std::string& Leviathan::ObjectFileTextBlock::GetName ( ) const
pure virtual

Gets the name of this text block.

Implemented in Leviathan::ObjectFileTextBlockProper.


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