Nebula
Loading...
Searching...
No Matches
IO Namespace Reference

Detailed Description

Instances of wrapped stream classes.

The resource loader thread is responsible to handle all ResourceLoaders that wish to load resources asynchronously.

The material pool provides a chunk allocation source for material types and instances.

Vulkan texture abstraction types.

For the actual loader code, see VkStreamTextureLoader and VkMemoryTextureLoader.

Namespaces

namespace  FileDialog

Classes

struct  [struct].state
class  ArchiveBase
 Base class of file archives. More...
class  ArchiveFileSystemBase
class  Assign
 An assign associates an intuitive name with a real-world filesystem path. More...
class  AssignRegistry
 Central registry for path assigns. More...
class  BinaryReader
 A friendly interface to read binary data from a stream. More...
class  BinaryWriter
 A friendly interface for writing binary data to a stream. More...
struct  BXMLFileAttr
struct  BXMLFileHeader
struct  BXMLFileNode
class  BXmlLoaderUtil
 Helper class for loading binary xml files created with N3's binaryxmlconverter3 tool. More...
class  BXmlReader
 Stream reader for binary XML files. More...
class  CachedHttpStream
class  CachedStream
 Wraps an underlying mappable stream object to avoid reopening it more than once (e. More...
class  Console
 Nebula's console, this is the central place for command- line-style communication with the user. More...
class  ConsoleHandler
 Base class for all console handlers. More...
class  EmbeddedMemoryStream
 Implements a stream class which reads from an embedded resource. More...
struct  EventHandlerData
class  ExcelXmlReader
 A stream reader class which reads Excel XML files. More...
class  FileStream
 A stream to which offers read/write access to filesystem files. More...
struct  FilesystemStartupInfo
class  FileWatcher
 For registering callbacks for file modification events. More...
class  FileWatcherImpl
struct  FileWatcherPlatform
class  HistoryConsoleHandler
 A console handler which stores the last N log messages in a Util::RingBuffer<String>. More...
class  IoInterface
struct  IOStat
class  JsonReader
 Reads json formatted data with random access from a stream using pjson as backend. More...
class  JsonWriter
 Write Json-formatted data to a stream. More...
class  LogFileConsoleHandler
 A console handler which writes all console output to a log file. More...
class  MediaType
 Encapsulates a MIME conformant media type description (text/plain, image/jpg, etc...). More...
class  MemoryStream
 Implements a stream class which writes to and reads from system RAM. More...
class  Path
 A path is an abstraction around file paths. More...
class  ProjectLocator
 Resolves the project root and the toolkit (nebula root) directory. More...
class  SafeFileStream
 Wrapper around FileStream that will save to a temporary file and swap when closed. More...
class  SchemeRegistry
 Central registry for URI schemes, associates an URI scheme (e.g. More...
class  Stream
 Offers an abstract interface for read/write access to a sequence of bytes. More...
class  StreamCache
 Explicit cache for reusing read-only streams that are already opened. More...
class  StreamReader
 Stream reader classes provide a specialized read-interface for a stream. More...
class  StreamWriter
 Stream writer classes provide a specialized write-interface for a stream. More...
class  TextReader
 A friendly interface for reading text data from a stream. More...
class  TextWriter
 A friendly interface for writing text data to a stream. More...
class  URI
 An URI object can split a Uniform Resource Identifier string into its components or build a string from URI components. More...
class  URN
 A URN (Uniform Resource Name) is a URI (Uniform Resource Identifier) that uses the "urn" scheme. More...
struct  WatchEvent
class  XmlReader
 Reads XML formatted data with random access from a stream using TinyXML as backend. More...
class  XmlWriter
 Write XML-formatted data to a stream. More...
class  ZipArchive
 Private helper class for ZipFileSystem to hold per-Zip-archive data. More...
class  ZipDirEntry
 A directory entry in a zip arcive. More...
class  ZipFileEntry
 A file entry in a zip archive. More...
class  ZipFileStream
 Wraps a file in a zip archive into a stream. More...
class  ZipFileSystem
 An archive filesystem wrapper for ZIP files. More...

Typedefs

using WatchDelegate = std::function<void(WatchEvent const&)>
using FileMapFunc = void(const Util::String& file, const Util::String& folder)

Enumerations

enum  WatchEventType { Created , Deleted , NameChange , Modified }
enum  WatchFlags {
  NameChanged = 0 , SizeChanged = 1 , Write = 2 , Access = 3 ,
  Creation = 4
}

Functions

template<>
void JsonReader::Get< Math::Extrapolator< Math::vec3 > > (Math::Extrapolator< Math::vec3 > &ret, const char *attr)
template<>
void JsonWriter::Add< Math::Extrapolator< Math::vec3 > > (Math::Extrapolator< Math::vec3 > const &value, Util::String const &attr)
template<>
void JsonReader::Get< Game::Orientation > (Game::Orientation &ret, const char *attr)
template<>
void JsonWriter::Add< Game::Orientation > (Game::Orientation const &value, Util::String const &attr)
template<>
void JsonReader::Get< Game::Position > (Game::Position &ret, const char *attr)
template<>
void JsonWriter::Add< Game::Position > (Game::Position const &value, Util::String const &attr)
template<>
void JsonReader::Get< Game::Scale > (Game::Scale &ret, const char *attr)
template<>
void JsonWriter::Add< Game::Scale > (Game::Scale const &value, Util::String const &attr)
template<>
void JsonReader::Get< Game::Velocity > (Game::Velocity &ret, const char *attr)
template<>
void JsonWriter::Add< Game::Velocity > (Game::Velocity const &value, Util::String const &attr)
template<>
void JsonReader::Get< Game::AngularVelocity > (Game::AngularVelocity &ret, const char *attr)
template<>
void JsonWriter::Add< Game::AngularVelocity > (Game::AngularVelocity const &value, Util::String const &attr)
void __cdecl Log (const char *logGroup, const char *fmt,...)
void __cdecl LogWarning (const char *logGroup, const char *fmt,...)
void __cdecl LogError (const char *logGroup, const char *fmt,...)
void __cdecl LogSource (const char *logGroup, const char *file, const int line, const char *fmt,...)
 __ImplementClass (IO::ArchiveBase, 'ARCB', Core::RefCounted)
 __ImplementClass (IO::ArchiveFileSystemBase, 'AFSB', Core::RefCounted)
 __ImplementInterfaceSingleton (IO::ArchiveFileSystemBase)
 __ImplementClass (IO::AssignRegistry, 'ASRG', Core::RefCounted)
 __ImplementInterfaceSingleton (IO::AssignRegistry)
 __ImplementClass (IO::BinaryReader, 'BINR', IO::StreamReader)
 __ImplementClass (IO::BinaryWriter, 'BINW', IO::StreamWriter)
 __ImplementClass (IO::BXmlReader, 'BXLR', IO::StreamReader)
 __ImplementClass (IO::CachedHttpStream, 'CHTP', IO::Stream)
 __ImplementClass (IO::StreamCache, 'STCA', Core::RefCounted)
 __ImplementSingleton (IO::StreamCache)
 __ImplementClass (IO::Console, 'CNSL', Core::RefCounted)
 __ImplementInterfaceSingleton (IO::Console)
 __ImplementClass (IO::ConsoleHandler, 'CONH', Core::RefCounted)
 __ImplementClass (IO::EmbeddedMemoryStream, 'EMSR', IO::Stream)
 __ImplementClass (IO::ExcelXmlReader, 'EXRD', IO::StreamReader)
 __ImplementClass (IO::FileStream, 'FSTR', IO::Stream)
 __ImplementClass (IO::FileWatcher, 'FIWT', Threading::Thread)
 __ImplementInterfaceSingleton (IO::FileWatcher)
 __ImplementInterfaceSingleton (IO::GameContentServer)
 __ImplementClass (IO::HistoryConsoleHandler, 'HICH', IO::ConsoleHandler)
 __ImplementClass (IO::IoInterface, 'IIOF', Interface::InterfaceBase)
 __ImplementInterfaceSingleton (IO::IoInterface)
void StartupFilesystem (const FilesystemStartupInfo &info)
 Setup the file/stream system.
void ShutdownFilesystem ()
 Break down the filesystem.
Ptr< Stream > CreateStream (const URI &uri)
 create a stream object for the given uri
bool MountArchive (const URI &uri)
 mount a file archive (without archive file extension!)
bool MountEmbeddedArchive (const URI &uri)
 mount an embedded file archive
void UnmountArchive (const URI &uri)
 unmount a file archive (without archive file extension!)
bool IsArchiveMounted (const URI &uri)
 return true if a archive is mounted (without archive file extension!)
void SetArchiveFileSystemEnabled (bool b)
 enable/disable transparent archive filesystem layering (default is yes)
bool IsArchiveFileSystemEnabled ()
 return true if transparent archive filesystem is enabled
void MountStandardArchives ()
 mount standard archives (e.g. home:export.zip and home:export_$(platform).zip)
void UnmountStandardArchives ()
 unmount standard archives
bool CreateDirectory (const URI &uri)
 This method creates all missing directories in a path.
bool EnsureDirectoriesForFile (const URI &uri)
 create all missing directories
bool CopyFile (const URI &fromUri, const URI &toUri)
 This copies a file to another file.
unsigned int ComputeFileCrc (const URI &uri)
 This method computes the CRC checksum for a file.
bool RenameFile (const URI &fromUri, const URI &toUri)
 Renames a file or a directory on the conventional filesystem.
bool DeleteFile (const URI &path)
 delete a file
bool DeleteDirectory (const URI &path)
 delete an empty directory
bool FileExists (const URI &path)
 return true if file exists
bool DirectoryExists (const URI &path)
 return true if directory exists
bool MoveFile (const URI &oldPath, const URI &newPath)
 Move file to new path.
void SetReadOnly (const URI &path, bool b)
 set the readonly status of a file
bool IsReadOnly (const URI &path)
 return read only status of a file
void SetFileWriteTime (const URI &path, FileTime fileTime)
 set the write-time of a file
FileTime GetFileWriteTime (const URI &path)
 return the last write-time of a file
Array< String > AddPathPrefixToArray (const String &prefix, const Array< String > &filenames)
Array< String > ListFiles (const URI &dir, const Util::String &pattern, bool asFullPath=false)
 list all files matching a pattern in a directory
Array< String > ListDirectories (const URI &dir, const Util::String &pattern, bool asFullPath=false, bool prioritizeArchive=true)
 list all subdirectories matching a pattern in a directory
bool ReadFile (const URI &path, Util::String &contents)
 read contents of file and return as string
bool IsLocked (const URI &path)
 return if file is locked
IO::URI CreateTemporaryFilename (const URI &path)
 create a temporary file name
Util::String NativePath (const Util::String &path)
 return native path
bool GetIOInfo (const URI &uri, IOStat &outInfo, bool prioritizeArchive)
 get file/folder information (size, access time, modified time, creation time) via stat calls
void IterateFolders (const URI &dir, const Util::String &pattern, FileMapFunc iter)
 iterate through all files in hierarchy and call provided function
 __ImplementClass (IO::JsonReader, 'JSLR', IO::StreamReader)
template<>
void JsonReader::Get< Util::Array< uint32_t > > (Util::Array< uint32_t > &ret, const char *attr)
template<>
void JsonReader::Get< Util::Array< int > > (Util::Array< int > &ret, const char *attr)
template<>
void JsonReader::Get< Math::mat4 > (Math::mat4 &ret, const char *attr)
template<>
void JsonReader::Get< Math::int2 > (Math::int2 &ret, const char *attr)
template<>
void JsonReader::Get< Math::vector > (Math::vector &ret, const char *attr)
template<>
void JsonReader::Get< Math::vec4 > (Math::vec4 &ret, const char *attr)
template<>
void JsonReader::Get< Util::Color > (Util::Color &ret, const char *attr)
template<>
void JsonReader::Get< Math::quat > (Math::quat &ret, const char *attr)
template<>
void JsonReader::Get< Math::vec3 > (Math::vec3 &ret, const char *attr)
template<>
void JsonReader::Get< Math::vec2 > (Math::vec2 &ret, const char *attr)
template<>
void JsonReader::Get< Util::Variant > (Util::Variant &ret, const char *attr)
 Returns the attribute as variant type.
template<>
void JsonReader::Get< Util::String > (Util::String &ret, const char *attr)
template<>
void JsonReader::Get< Util::Guid > (Util::Guid &ret, const char *attr)
template<>
void JsonReader::Get< Util::FourCC > (Util::FourCC &ret, const char *attr)
template<>
void JsonReader::Get< Util::StringAtom > (Util::StringAtom &ret, const char *attr)
template<>
void JsonReader::Get< Util::Array< float > > (Util::Array< float > &ret, const char *attr)
template<>
void JsonReader::Get< Util::Array< Util::String > > (Util::Array< Util::String > &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Math::vec4 > (Math::vec4 &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Math::quat > (Math::quat &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Math::mat4 > (Math::mat4 &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Util::String > (Util::String &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Util::Array< int > > (Util::Array< int > &target, const char *attr)
template<>
bool JsonReader::GetOpt< Util::Array< uint32_t > > (Util::Array< uint32_t > &target, const char *attr)
template<>
bool JsonReader::GetOpt< Util::Array< float > > (Util::Array< float > &target, const char *attr)
template<>
bool JsonReader::GetOpt< Util::Array< Util::String > > (Util::Array< Util::String > &target, const char *attr)
template<>
void JsonReader::Get< Util::Array< uint32_t > > (Util::Array< uint32_t > &ret, const char *attr)
template<>
void JsonReader::Get< Util::Array< int > > (Util::Array< int > &ret, const char *attr)
template<>
void JsonReader::Get< Math::mat4 > (Math::mat4 &ret, const char *attr)
template<>
void JsonReader::Get< Math::int2 > (Math::int2 &ret, const char *attr)
template<>
void JsonReader::Get< Math::vector > (Math::vector &ret, const char *attr)
template<>
void JsonReader::Get< Math::vec4 > (Math::vec4 &ret, const char *attr)
template<>
void JsonReader::Get< Math::vec3 > (Math::vec3 &ret, const char *attr)
template<>
void JsonReader::Get< Math::vec2 > (Math::vec2 &ret, const char *attr)
template<>
void JsonReader::Get< Util::Variant > (Util::Variant &ret, const char *attr)
 Returns the attribute as variant type.
template<>
void JsonReader::Get< Util::String > (Util::String &ret, const char *attr)
template<>
void JsonReader::Get< Util::FourCC > (Util::FourCC &ret, const char *attr)
template<>
void JsonReader::Get< Util::StringAtom > (Util::StringAtom &ret, const char *attr)
template<>
void JsonReader::Get< Util::Array< float > > (Util::Array< float > &ret, const char *attr)
template<>
void JsonReader::Get< Util::Array< Util::String > > (Util::Array< Util::String > &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Math::vec4 > (Math::vec4 &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Math::quat > (Math::quat &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Math::mat4 > (Math::mat4 &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Util::String > (Util::String &ret, const char *attr)
template<>
bool JsonReader::GetOpt< Util::Array< int > > (Util::Array< int > &target, const char *attr)
template<>
bool JsonReader::GetOpt< Util::Array< uint32_t > > (Util::Array< uint32_t > &target, const char *attr)
template<>
bool JsonReader::GetOpt< Util::Array< float > > (Util::Array< float > &target, const char *attr)
template<>
bool JsonReader::GetOpt< Util::Array< Util::String > > (Util::Array< Util::String > &target, const char *attr)
 __ImplementClass (IO::JsonWriter, 'JSOW', IO::StreamWriter)
static void CopyRawNode (pjson::value_variant &dst, const pjson::value_variant &src, pjson::pool_allocator &alloc)
 pjson parses in place, and a parsed string's size does not include the null terminator it wrote over the delimiter.
 __ImplementClass (IO::LogFileConsoleHandler, 'LFCH', IO::ConsoleHandler)
 __ImplementClass (IO::MemoryStream, 'MSTR', IO::Stream)
static uint32_t CreateNotifyMask (Util::BitField< 8 > flags)
static void AddWatchRecursive (FileWatcherPlatform &p, const String &absolutePath, const String &relativePath, uint32_t mask)
 __ImplementClass (IO::SafeFileStream, 'SFSR', IO::FileStream)
 __ImplementClass (IO::SchemeRegistry, 'SCRG', Core::RefCounted)
 __ImplementInterfaceSingleton (IO::SchemeRegistry)
 __ImplementClass (IO::Stream, 'STRM', Core::RefCounted)
 __ImplementClass (IO::StreamReader, 'STRR', Core::RefCounted)
 __ImplementClass (IO::StreamWriter, 'STWR', Core::RefCounted)
 __ImplementClass (IO::TextReader, 'TXTR', IO::StreamReader)
 __ImplementClass (IO::TextWriter, 'TXTW', IO::StreamWriter)
 __ImplementClass (IO::XmlReader, 'XMLR', IO::StreamReader)
 __ImplementClass (IO::XmlWriter, 'XMLW', IO::StreamWriter)
 __ImplementClass (IO::ZipArchive, 'ZPAR', IO::ArchiveBase)
 __ImplementClass (IO::ZipFileStream, 'ZFST', IO::Stream)
 __ImplementClass (IO::ZipFileSystem, 'ZPFS', IO::ArchiveFileSystemBase)
 __ImplementInterfaceSingleton (IO::ZipFileSystem)
template<>
void JsonReader::Get< Particles::EnvelopeCurve > (Particles::EnvelopeCurve &ret, const char *attr)

Variables

struct  state

Typedef Documentation

◆ FileMapFunc

using IO::FileMapFunc = void(const Util::String& file, const Util::String& folder)

◆ WatchDelegate

using IO::WatchDelegate = std::function<void(WatchEvent const&)>

Enumeration Type Documentation

◆ WatchEventType

Enumerator
Created 
Deleted 
NameChange 
Modified 

◆ WatchFlags

Enumerator
NameChanged 
SizeChanged 
Write 
Access 
Creation 

Function Documentation

◆ __ImplementClass() [1/32]

◆ __ImplementClass() [2/32]

◆ __ImplementClass() [3/32]

◆ __ImplementClass() [4/32]

◆ __ImplementClass() [5/32]

◆ __ImplementClass() [6/32]

◆ __ImplementClass() [7/32]

◆ __ImplementClass() [8/32]

◆ __ImplementClass() [9/32]

◆ __ImplementClass() [10/32]

◆ __ImplementClass() [11/32]

◆ __ImplementClass() [12/32]

◆ __ImplementClass() [13/32]

◆ __ImplementClass() [14/32]

◆ __ImplementClass() [15/32]

◆ __ImplementClass() [16/32]

◆ __ImplementClass() [17/32]

◆ __ImplementClass() [18/32]

◆ __ImplementClass() [19/32]

◆ __ImplementClass() [20/32]

◆ __ImplementClass() [21/32]

◆ __ImplementClass() [22/32]

◆ __ImplementClass() [23/32]

◆ __ImplementClass() [24/32]

◆ __ImplementClass() [25/32]

◆ __ImplementClass() [26/32]

◆ __ImplementClass() [27/32]

◆ __ImplementClass() [28/32]

◆ __ImplementClass() [29/32]

◆ __ImplementClass() [30/32]

◆ __ImplementClass() [31/32]

◆ __ImplementClass() [32/32]

◆ __ImplementInterfaceSingleton() [1/8]

IO::__ImplementInterfaceSingleton ( IO::ArchiveFileSystemBase )

◆ __ImplementInterfaceSingleton() [2/8]

IO::__ImplementInterfaceSingleton ( IO::AssignRegistry )

◆ __ImplementInterfaceSingleton() [3/8]

IO::__ImplementInterfaceSingleton ( IO::Console )

◆ __ImplementInterfaceSingleton() [4/8]

IO::__ImplementInterfaceSingleton ( IO::FileWatcher )

◆ __ImplementInterfaceSingleton() [5/8]

IO::__ImplementInterfaceSingleton ( IO::GameContentServer )

◆ __ImplementInterfaceSingleton() [6/8]

IO::__ImplementInterfaceSingleton ( IO::IoInterface )

◆ __ImplementInterfaceSingleton() [7/8]

IO::__ImplementInterfaceSingleton ( IO::SchemeRegistry )

◆ __ImplementInterfaceSingleton() [8/8]

IO::__ImplementInterfaceSingleton ( IO::ZipFileSystem )

◆ __ImplementSingleton()

◆ AddPathPrefixToArray()

Array< String > IO::AddPathPrefixToArray ( const String & prefix,
const Array< String > & filenames )

◆ AddWatchRecursive()

void IO::AddWatchRecursive ( FileWatcherPlatform & p,
const String & absolutePath,
const String & relativePath,
uint32_t mask )
static

◆ ComputeFileCrc()

unsigned int IO::ComputeFileCrc ( const URI & uri)

This method computes the CRC checksum for a file.

get the CRC checksum of a file

◆ CopyFile()

bool IO::CopyFile ( const URI & fromUri,
const URI & toUri )

This copies a file to another file.

copy a file

◆ CopyRawNode()

void IO::CopyRawNode ( pjson::value_variant & dst,
const pjson::value_variant & src,
pjson::pool_allocator & alloc )
static

pjson parses in place, and a parsed string's size does not include the null terminator it wrote over the delimiter.

pjson's own copy keeps that size, which is what leaves the copied string unterminated, so a parsed node has to be copied through the string text instead.

◆ CreateDirectory()

bool IO::CreateDirectory ( const URI & uri)

This method creates all missing directories in a path.

create all missing directories in the path

◆ CreateNotifyMask()

uint32_t IO::CreateNotifyMask ( Util::BitField< 8 > flags)
static

◆ CreateStream()

Ptr< Stream > IO::CreateStream ( const URI & uri)

create a stream object for the given uri

◆ CreateTemporaryFilename()

URI IO::CreateTemporaryFilename ( const URI & uri)

create a temporary file name

◆ DeleteDirectory()

bool IO::DeleteDirectory ( const URI & uri)

delete an empty directory

◆ DeleteFile()

bool IO::DeleteFile ( const URI & uri)

delete a file

◆ DirectoryExists()

bool IO::DirectoryExists ( const URI & uri)

return true if directory exists

◆ EnsureDirectoriesForFile()

bool IO::EnsureDirectoriesForFile ( const URI & uri)

create all missing directories

◆ FileExists()

bool IO::FileExists ( const URI & uri)

return true if file exists

◆ GetFileWriteTime()

FileTime IO::GetFileWriteTime ( const URI & uri)

return the last write-time of a file

◆ GetIOInfo()

bool IO::GetIOInfo ( const URI & uri,
IOStat & outInfo,
bool prioritizeArchive )

get file/folder information (size, access time, modified time, creation time) via stat calls

◆ IsArchiveFileSystemEnabled()

bool IO::IsArchiveFileSystemEnabled ( )

return true if transparent archive filesystem is enabled

◆ IsArchiveMounted()

bool IO::IsArchiveMounted ( const URI & uri)

return true if a archive is mounted (without archive file extension!)

◆ IsLocked()

bool IO::IsLocked ( const URI & uri)

return if file is locked

◆ IsReadOnly()

bool IO::IsReadOnly ( const URI & uri)

return read only status of a file

◆ IterateFolders()

void IO::IterateFolders ( const URI & dir,
const Util::String & pattern,
FileMapFunc iter )

iterate through all files in hierarchy and call provided function

◆ JsonReader::Get< Game::AngularVelocity >()

template<>
void IO::JsonReader::Get< Game::AngularVelocity > ( Game::AngularVelocity & ret,
const char * attr )

◆ JsonReader::Get< Game::Orientation >()

template<>
void IO::JsonReader::Get< Game::Orientation > ( Game::Orientation & ret,
const char * attr )

◆ JsonReader::Get< Game::Position >()

template<>
void IO::JsonReader::Get< Game::Position > ( Game::Position & ret,
const char * attr )

◆ JsonReader::Get< Game::Scale >()

template<>
void IO::JsonReader::Get< Game::Scale > ( Game::Scale & ret,
const char * attr )

◆ JsonReader::Get< Game::Velocity >()

template<>
void IO::JsonReader::Get< Game::Velocity > ( Game::Velocity & ret,
const char * attr )

◆ JsonReader::Get< Math::Extrapolator< Math::vec3 > >()

template<>
void IO::JsonReader::Get< Math::Extrapolator< Math::vec3 > > ( Math::Extrapolator< Math::vec3 > & ret,
const char * attr )

◆ JsonReader::Get< Math::int2 >() [1/2]

template<>
void IO::JsonReader::Get< Math::int2 > ( Math::int2 & ret,
const char * attr )

◆ JsonReader::Get< Math::int2 >() [2/2]

template<>
void IO::JsonReader::Get< Math::int2 > ( Math::int2 & ret,
const char * attr )

◆ JsonReader::Get< Math::mat4 >() [1/2]

template<>
void IO::JsonReader::Get< Math::mat4 > ( Math::mat4 & ret,
const char * attr )

◆ JsonReader::Get< Math::mat4 >() [2/2]

template<>
void IO::JsonReader::Get< Math::mat4 > ( Math::mat4 & ret,
const char * attr )

◆ JsonReader::Get< Math::quat >()

template<>
void IO::JsonReader::Get< Math::quat > ( Math::quat & ret,
const char * attr )

◆ JsonReader::Get< Math::vec2 >() [1/2]

template<>
void IO::JsonReader::Get< Math::vec2 > ( Math::vec2 & ret,
const char * attr )

◆ JsonReader::Get< Math::vec2 >() [2/2]

template<>
void IO::JsonReader::Get< Math::vec2 > ( Math::vec2 & ret,
const char * attr )

◆ JsonReader::Get< Math::vec3 >() [1/2]

template<>
void IO::JsonReader::Get< Math::vec3 > ( Math::vec3 & ret,
const char * attr )

◆ JsonReader::Get< Math::vec3 >() [2/2]

template<>
void IO::JsonReader::Get< Math::vec3 > ( Math::vec3 & ret,
const char * attr )

◆ JsonReader::Get< Math::vec4 >() [1/2]

template<>
void IO::JsonReader::Get< Math::vec4 > ( Math::vec4 & ret,
const char * attr )

◆ JsonReader::Get< Math::vec4 >() [2/2]

template<>
void IO::JsonReader::Get< Math::vec4 > ( Math::vec4 & ret,
const char * attr )

◆ JsonReader::Get< Math::vector >() [1/2]

template<>
void IO::JsonReader::Get< Math::vector > ( Math::vector & ret,
const char * attr )

◆ JsonReader::Get< Math::vector >() [2/2]

template<>
void IO::JsonReader::Get< Math::vector > ( Math::vector & ret,
const char * attr )

◆ JsonReader::Get< Particles::EnvelopeCurve >()

template<>
void IO::JsonReader::Get< Particles::EnvelopeCurve > ( Particles::EnvelopeCurve & ret,
const char * attr )

◆ JsonReader::Get< Util::Array< float > >() [1/2]

template<>
void IO::JsonReader::Get< Util::Array< float > > ( Util::Array< float > & ret,
const char * attr )

◆ JsonReader::Get< Util::Array< float > >() [2/2]

template<>
void IO::JsonReader::Get< Util::Array< float > > ( Util::Array< float > & ret,
const char * attr )

◆ JsonReader::Get< Util::Array< int > >() [1/2]

template<>
void IO::JsonReader::Get< Util::Array< int > > ( Util::Array< int > & ret,
const char * attr )

◆ JsonReader::Get< Util::Array< int > >() [2/2]

template<>
void IO::JsonReader::Get< Util::Array< int > > ( Util::Array< int > & ret,
const char * attr )

◆ JsonReader::Get< Util::Array< uint32_t > >() [1/2]

template<>
void IO::JsonReader::Get< Util::Array< uint32_t > > ( Util::Array< uint32_t > & ret,
const char * attr )

◆ JsonReader::Get< Util::Array< uint32_t > >() [2/2]

template<>
void IO::JsonReader::Get< Util::Array< uint32_t > > ( Util::Array< uint32_t > & ret,
const char * attr )

◆ JsonReader::Get< Util::Array< Util::String > >() [1/2]

template<>
void IO::JsonReader::Get< Util::Array< Util::String > > ( Util::Array< Util::String > & ret,
const char * attr )

◆ JsonReader::Get< Util::Array< Util::String > >() [2/2]

template<>
void IO::JsonReader::Get< Util::Array< Util::String > > ( Util::Array< Util::String > & ret,
const char * attr )

◆ JsonReader::Get< Util::Color >()

template<>
void IO::JsonReader::Get< Util::Color > ( Util::Color & ret,
const char * attr )

◆ JsonReader::Get< Util::FourCC >() [1/2]

template<>
void IO::JsonReader::Get< Util::FourCC > ( Util::FourCC & ret,
const char * attr )

◆ JsonReader::Get< Util::FourCC >() [2/2]

template<>
void IO::JsonReader::Get< Util::FourCC > ( Util::FourCC & ret,
const char * attr )

◆ JsonReader::Get< Util::Guid >()

template<>
void IO::JsonReader::Get< Util::Guid > ( Util::Guid & ret,
const char * attr )

◆ JsonReader::Get< Util::String >() [1/2]

template<>
void IO::JsonReader::Get< Util::String > ( Util::String & ret,
const char * attr )

◆ JsonReader::Get< Util::String >() [2/2]

template<>
void IO::JsonReader::Get< Util::String > ( Util::String & ret,
const char * attr )

◆ JsonReader::Get< Util::StringAtom >() [1/2]

template<>
void IO::JsonReader::Get< Util::StringAtom > ( Util::StringAtom & ret,
const char * attr )

◆ JsonReader::Get< Util::StringAtom >() [2/2]

template<>
void IO::JsonReader::Get< Util::StringAtom > ( Util::StringAtom & ret,
const char * attr )

◆ JsonReader::Get< Util::Variant >() [1/2]

template<>
void IO::JsonReader::Get< Util::Variant > ( Util::Variant & ret,
const char * attr )

Returns the attribute as variant type.

This checks what type the variant is and returns the value type that it indicates. If incoming variant type is void, the reader will automatically detect type from the attribute. Will most likely assert if type is incorrect, so use with caution!

◆ JsonReader::Get< Util::Variant >() [2/2]

template<>
void IO::JsonReader::Get< Util::Variant > ( Util::Variant & ret,
const char * attr )

Returns the attribute as variant type.

This checks what type the variant is and returns the value type that it indicates. If incoming variant type is void, the reader will automatically detect type from the attribute. Will most likely assert if type is incorrect, so use with caution!

◆ JsonReader::GetOpt< Math::mat4 >() [1/2]

template<>
bool IO::JsonReader::GetOpt< Math::mat4 > ( Math::mat4 & ret,
const char * attr )

◆ JsonReader::GetOpt< Math::mat4 >() [2/2]

template<>
bool IO::JsonReader::GetOpt< Math::mat4 > ( Math::mat4 & ret,
const char * attr )

◆ JsonReader::GetOpt< Math::quat >() [1/2]

template<>
bool IO::JsonReader::GetOpt< Math::quat > ( Math::quat & ret,
const char * attr )

◆ JsonReader::GetOpt< Math::quat >() [2/2]

template<>
bool IO::JsonReader::GetOpt< Math::quat > ( Math::quat & ret,
const char * attr )

◆ JsonReader::GetOpt< Math::vec4 >() [1/2]

template<>
bool IO::JsonReader::GetOpt< Math::vec4 > ( Math::vec4 & ret,
const char * attr )

◆ JsonReader::GetOpt< Math::vec4 >() [2/2]

template<>
bool IO::JsonReader::GetOpt< Math::vec4 > ( Math::vec4 & ret,
const char * attr )

◆ JsonReader::GetOpt< Util::Array< float > >() [1/2]

template<>
bool IO::JsonReader::GetOpt< Util::Array< float > > ( Util::Array< float > & target,
const char * attr )

◆ JsonReader::GetOpt< Util::Array< float > >() [2/2]

template<>
bool IO::JsonReader::GetOpt< Util::Array< float > > ( Util::Array< float > & target,
const char * attr )

◆ JsonReader::GetOpt< Util::Array< int > >() [1/2]

template<>
bool IO::JsonReader::GetOpt< Util::Array< int > > ( Util::Array< int > & target,
const char * attr )

◆ JsonReader::GetOpt< Util::Array< int > >() [2/2]

template<>
bool IO::JsonReader::GetOpt< Util::Array< int > > ( Util::Array< int > & target,
const char * attr )

◆ JsonReader::GetOpt< Util::Array< uint32_t > >() [1/2]

template<>
bool IO::JsonReader::GetOpt< Util::Array< uint32_t > > ( Util::Array< uint32_t > & target,
const char * attr )

◆ JsonReader::GetOpt< Util::Array< uint32_t > >() [2/2]

template<>
bool IO::JsonReader::GetOpt< Util::Array< uint32_t > > ( Util::Array< uint32_t > & target,
const char * attr )

◆ JsonReader::GetOpt< Util::Array< Util::String > >() [1/2]

template<>
bool IO::JsonReader::GetOpt< Util::Array< Util::String > > ( Util::Array< Util::String > & target,
const char * attr )

◆ JsonReader::GetOpt< Util::Array< Util::String > >() [2/2]

template<>
bool IO::JsonReader::GetOpt< Util::Array< Util::String > > ( Util::Array< Util::String > & target,
const char * attr )

◆ JsonReader::GetOpt< Util::String >() [1/2]

template<>
bool IO::JsonReader::GetOpt< Util::String > ( Util::String & ret,
const char * attr )

◆ JsonReader::GetOpt< Util::String >() [2/2]

template<>
bool IO::JsonReader::GetOpt< Util::String > ( Util::String & ret,
const char * attr )

◆ JsonWriter::Add< Game::AngularVelocity >()

template<>
void IO::JsonWriter::Add< Game::AngularVelocity > ( Game::AngularVelocity const & value,
Util::String const & attr )

◆ JsonWriter::Add< Game::Orientation >()

template<>
void IO::JsonWriter::Add< Game::Orientation > ( Game::Orientation const & value,
Util::String const & attr )

◆ JsonWriter::Add< Game::Position >()

template<>
void IO::JsonWriter::Add< Game::Position > ( Game::Position const & value,
Util::String const & attr )

◆ JsonWriter::Add< Game::Scale >()

template<>
void IO::JsonWriter::Add< Game::Scale > ( Game::Scale const & value,
Util::String const & attr )

◆ JsonWriter::Add< Game::Velocity >()

template<>
void IO::JsonWriter::Add< Game::Velocity > ( Game::Velocity const & value,
Util::String const & attr )

◆ JsonWriter::Add< Math::Extrapolator< Math::vec3 > >()

template<>
void IO::JsonWriter::Add< Math::Extrapolator< Math::vec3 > > ( Math::Extrapolator< Math::vec3 > const & value,
Util::String const & attr )

◆ ListDirectories()

Util::Array< Util::String > IO::ListDirectories ( const URI & uri,
const String & pattern,
bool asFullPath,
bool prioritizeArchive )

list all subdirectories matching a pattern in a directory

◆ ListFiles()

Util::Array< Util::String > IO::ListFiles ( const URI & uri,
const String & pattern,
bool asFullPath )

list all files matching a pattern in a directory

◆ Log()

void IO::Log ( const char * logGroup,
const char * fmt,
... )

◆ LogError()

void void void IO::LogError ( const char * logGroup,
const char * fmt,
... )

◆ LogSource()

void void void void IO::LogSource ( const char * logGroup,
const char * file,
const int line,
const char * fmt,
... )

◆ LogWarning()

void void IO::LogWarning ( const char * logGroup,
const char * fmt,
... )

◆ MountArchive()

bool IO::MountArchive ( const URI & uri)

mount a file archive (without archive file extension!)

◆ MountEmbeddedArchive()

bool IO::MountEmbeddedArchive ( const URI & uri)

mount an embedded file archive

◆ MountStandardArchives()

void IO::MountStandardArchives ( )

mount standard archives (e.g. home:export.zip and home:export_$(platform).zip)

◆ MoveFile()

bool IO::MoveFile ( const URI & oldPath,
const URI & newPath )

Move file to new path.

◆ NativePath()

Util::String IO::NativePath ( const Util::String & path)

return native path

◆ ReadFile()

bool IO::ReadFile ( const URI & path,
Util::String & contents )

read contents of file and return as string

◆ RenameFile()

bool IO::RenameFile ( const URI & fromUri,
const URI & toUri )

Renames a file or a directory on the conventional filesystem.

rename a file or a directory. The target must not exist as the exact name, so a rename never replaces

The target must not exist as the exact name, so a rename never replaces anything. The name is looked up in the directory listing rather than through FileExists(), which is case-insensitive on Windows, so a name that differs only in case counts as a new name on both platforms.

◆ SetArchiveFileSystemEnabled()

void IO::SetArchiveFileSystemEnabled ( bool b)

enable/disable transparent archive filesystem layering (default is yes)

◆ SetFileWriteTime()

void IO::SetFileWriteTime ( const URI & uri,
FileTime fileTime )

set the write-time of a file

◆ SetReadOnly()

void IO::SetReadOnly ( const URI & uri,
bool readOnly )

set the readonly status of a file

◆ ShutdownFilesystem()

void IO::ShutdownFilesystem ( )

Break down the filesystem.

◆ StartupFilesystem()

void IO::StartupFilesystem ( const FilesystemStartupInfo & info)

Setup the file/stream system.

◆ UnmountArchive()

void IO::UnmountArchive ( const URI & uri)

unmount a file archive (without archive file extension!)

◆ UnmountStandardArchives()

void IO::UnmountStandardArchives ( )

unmount standard archives

Variable Documentation

◆ state

struct IO::[struct].state IO::state