sgstream.h File Reference

The IO for many basic classes and structurs of ACS. More...

#include <vector>
#include "basestrm.h"
#include "loki/Singleton.h"

Include dependency graph for sgstream.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ConfigurationFileLocatorCore

Typedefs

typedef Loki::SingletonHolder<
ConfigurationFileLocatorCore
ConfigurationFileLocator

Functions

void generatedirecpict (void *orgpict, void *direcpict)
void loadpalette ()
int readgameoptions (const ASCString &filename="")
bool writegameoptions (ASCString filename="")
ASCString getConfigFileName ()
void checkFileLoadability (const ASCString &filename)
void initFileIO (const ASCString &configFileName, int skipChecks=0)


Detailed Description

The IO for many basic classes and structurs of ACS.

Definition in file sgstream.h.


Typedef Documentation

typedef Loki::SingletonHolder< ConfigurationFileLocatorCore > ConfigurationFileLocator

Definition at line 60 of file sgstream.h.


Function Documentation

void checkFileLoadability ( const ASCString filename  ) 

Definition at line 440 of file sgstream.cpp.

References exist(), fatalError(), getSearchPath(), getSearchPathNum(), CGameOptions::Instance(), tnstream::readChar(), tnstream::reading, CGameOptions::setChanged(), and writegameoptions().

Referenced by initFileIO().

void generatedirecpict ( void *  orgpict,
void *  direcpict 
)

ASCString getConfigFileName (  ) 

Definition at line 361 of file sgstream.cpp.

Referenced by initFileIO(), and showSearchPath().

void initFileIO ( const ASCString configFileName,
int  skipChecks = 0 
)

Definition at line 475 of file sgstream.cpp.

References addSearchPath(), appendbackslash(), checkFileLoadability(), displayLogMessage(), fatalError(), getConfigFileName(), getDirectory(), tfileerror::getFileName(), getSearchPath(), CGameOptions::getSearchPathNum(), CGameOptions::Instance(), isPathRelative(), opencontainer(), readgameoptions(), and resolvePath().

Referenced by main().

void loadpalette (  ) 

Definition at line 67 of file sgstream.cpp.

References txlattables::a, asc_paletteloaded, colormixbuf, colormixbufchar, displayLogMessage(), generategrayxlattable(), malloc(), pal, tn_c_lzw_filestream::readdata(), tnstream::reading, txlattables::xl, xlatpictgraytable, and xlattables.

Referenced by gamethread(), loadcursor(), loaddata(), GraphicSetManager_Base::loadData(), mapeditorMainThread(), and runTester().

int readgameoptions ( const ASCString filename = ""  ) 

Definition at line 372 of file sgstream.cpp.

References displayLogMessage(), exist(), fatalError(), tfileerror::getFileName(), ASCmsgException::getMessage(), getSearchPath(), CGameOptions::Instance(), CGameOptions::load(), makeDirectory(), CGameOptions::setChanged(), warningMessage(), and writegameoptions().

Referenced by checkbi3dir(), and initFileIO().

bool writegameoptions ( ASCString  filename = ""  ) 

Definition at line 418 of file sgstream.cpp.

References extractPath(), CGameOptions::Instance(), makeDirectory(), resolvePath(), and CGameOptions::save().

Referenced by checkFileLoadability(), main(), and readgameoptions().


Generated on Mon May 21 01:42:33 2012 for Advanced Strategic Command by  doxygen 1.5.1