nomlib
Loading...
Searching...
No Matches
nom::RocketFileInterface Class Reference

Filesystem interfacing bridge between libRocket and nomlib. More...

#include <RocketFileInterface.hpp>

Inheritance diagram for nom::RocketFileInterface:
[legend]

Public Member Functions

 RocketFileInterface (const std::string &root)
virtual void Release ()
 Implements Rocket::Core::FileInterface::Release.
virtual Rocket::Core::FileHandle Open (const Rocket::Core::String &path)
 Opens a file.
virtual void Close (Rocket::Core::FileHandle file)
 Closes a previously opened file.
virtual nom::size_type Read (void *buffer, nom::size_type size, Rocket::Core::FileHandle file)
 Reads data from a previously opened file.
virtual bool Seek (Rocket::Core::FileHandle file, long offset, int origin)
 Seeks to a point in a previously opened file.
virtual nom::size_type Tell (Rocket::Core::FileHandle file)
 Returns the current position of the file pointer.
std::string root () const
 Get the root directory path.

Private Attributes

Rocket::Core::String root_

Detailed Description

Filesystem interfacing bridge between libRocket and nomlib.

Rocket file interface for the shell examples.

Author
Lloyd Weehuizen

Definition at line 69 of file RocketFileInterface.hpp.

Member Function Documentation

◆ Release()

virtual void nom::RocketFileInterface::Release ( )
virtual

Implements Rocket::Core::FileInterface::Release.

Remarks
Called when this file interface is released.

◆ root()

std::string nom::RocketFileInterface::root ( ) const

Get the root directory path.

Returns
A string containing the directory path root that this object was initialized with.

Member Data Documentation

◆ root_

Rocket::Core::String nom::RocketFileInterface::root_
private

Definition at line 103 of file RocketFileInterface.hpp.


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