Content


NTL
Core
IReader

IReader


Interface describes source reader.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class IReader :public virtual IReleasable
{
protected:
    size_t m_iMin;
    size_t m_iMax;
public:
    size_t const &Min; // Source minimum boundary 
    size_t const &Max; // Source maximum boundary 

    virtual wchar_t Read(const size_t index) = 0; // Read character from source at specified index. Return 0 character if index is out of bounds 
    virtual String Read(const size_t index, const size_t length) = 0; // Read substring from source 
};
Namespace: nitisa::script
Include: Nitisa/Modules/Script/Interfaces/IReader.h