Blamite Game Engine - blam!  00263.10.17.20.0001.blamite
The core library for the Blamite Game Engine.
Namespaces | Functions
io.h File Reference
#include <string>
#include <vector>
#include <Windows.h>

Go to the source code of this file.

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::Utils
 Namespace containing general-purpose utilities.
 
 Blam::Utils::IO
 Utilities relating to reading/writing to and from files.
 

Functions

BLAM bool Blam::Utils::IO::FileExists (std::string name)
 Checks if the specified file exists. More...
 
BLAM int Blam::Utils::IO::CreateNewFile (std::string filename, std::string file_contents)
 Creates a file with the specified contents. More...
 
BLAM int Blam::Utils::IO::CreateFileFromResource (std::string filename, int res_id, const char *res_type, bool apply_placeholders)
 Creates a file with the contents pulled from the specified application resource. More...
 
BLAM int Blam::Utils::IO::CreateFileFromHTMLResource (std::string filename, int res_id, bool apply_placeholders)
 Creates a file with the contents pulled from the specified application HTML resource. More...
 
BLAM int Blam::Utils::IO::CreateFileFromPNGResource (std::string filename, int res_id)
 Creates a file with the contents pulled from the specified application PNG resource. More...
 
BLAM void Blam::Utils::IO::ValidatePath (std::string path)
 Validates that the specified path exists. More...
 
BLAM void Blam::Utils::IO::OpenGameDirectory ()
 Opens the engine's game directory in Windows Explorer. More...
 
BLAM std::string Blam::Utils::IO::GetApplicationDir ()
 Retrieves the application's working directory. More...
 
BLAM bool Blam::Utils::IO::ReadBinaryFile (std::string path, void *data, int64_t *size)
 Reads a file as raw binary data. More...
 
BLAM std::vector< std::string > Blam::Utils::IO::GetFileContentsAsLines (std::string path)
 Reads a file as a list of strings. More...