Alientech 0.01
An extendable game engine
C:/Alientech/AlienCargoHold/ACHCommonUtils.h File Reference
#include <fstream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  alien
namespace  alien::utils

Functions

string alien::utils::ACHreadName (ifstream *file)
 Reads a name from a CargoHold file A name is defined as an unsigned character determining the length of the string followed by a null terminated string of characters.
int alien::utils::ACHreadInt (ifstream *file)
 Reads an integer from a CargoHold file.
unsigned alien::utils::ACHreadUnsigned (ifstream *file)
 Reads an unsigned integer from a CargoHold file.
bool alien::utils::ACHisAFile (string path)
 Checks if the provided internal path has subdirectories or not.
string alien::utils::ACHgrabFirstSubdir (string path)
 Returns the first subdirectory or file name in a path.
string alien::utils::ACHstripFirstSubdir (string path)
 Strips the first subdirectory of the given path.