nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::FsContext Class Reference

Classes

struct  ResolvedPath
struct  OpenFile

Public Member Functions

void registerVirtualFS (std::unique_ptr< VirtualFS > fs)
VirtualFS * findVirtualFS (const std::string &name) const
void pushScriptOrigin (const std::string &fsName)
void pushScriptOrigin (const std::string &fsName, const std::string &scriptDir)
void popScriptOrigin ()
const std::string * currentScriptOrigin () const
const std::string * currentScriptDir () const
const std::string & cwd () const
void setCwd (const std::string &p)
ResolvedPath resolvePath (const std::string &userPath) const
int openFile (const std::string &userPath, const std::string &mode)
bool closeFile (int fid)
void closeAllFiles ()
OpenFile * findFile (int fid)
std::vector< int > openFileIds () const
const std::string & lastFopenError () const

Detailed Description

Definition at line 29 of file fs_context.hpp.

Member Function Documentation

◆ cwd()

const std::string & nk::FsContext::cwd ( ) const
inline

Definition at line 65 of file fs_context.hpp.

◆ lastFopenError()

const std::string & nk::FsContext::lastFopenError ( ) const
inline

Definition at line 123 of file fs_context.hpp.

◆ setCwd()

void nk::FsContext::setCwd ( const std::string & p)
inline

Definition at line 66 of file fs_context.hpp.


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