Gorgon Game Engine
Reader::Mark Class Reference

Marks a target position in file. More...

Public Member Functions

 Mark (const Mark &)=default
 Copy constructor. More...
 
 Mark (Reader &reader, unsigned long target)
 Constructs a target using a reader and absolute file position. More...
 
 operator bool () const
 Checks if the target is reached. More...
 
unsigned long Tell () const
 Tells the position of this mark. More...
 

Detailed Description

Marks a target position in file.

Can be checked if it is reached. Asserts to make sure target is not passed.

Constructor & Destructor Documentation

◆ Mark() [1/2]

Mark ( Reader reader,
unsigned long  target 
)

Constructs a target using a reader and absolute file position.

Prefer using Reader::Target function to create a target.

◆ Mark() [2/2]

Mark ( const Mark )
default

Copy constructor.

Member Function Documentation

◆ operator bool()

operator bool ( ) const
explicit

Checks if the target is reached.

References ASSERT, and Reader::Tell().

◆ Tell()

unsigned long Tell ( ) const

Tells the position of this mark.


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