All pastes #557658 Raw Edit

dede

public text v1 · immutable
·published 2007-06-11 01:49 UTC
rendered paste body
class CPathHandler{
private:
	static std::string mDefaultPrefix;
	static bool mInit;



public:
	/* ---------------------------------- INIT ----------------------------------
    // Description : initialise the pathhandler
    // --------------------------------------------------------------------------*/
	static bool Init(std::string DefaultPrefix);



	/* ------------------------------ GETDATAPATH -------------------------------
    // Description : return the path of the data
    // --------------------------------------------------------------------------*/
	std::string getDataPath();



	/* ------------------------------- GETVARPATH -------------------------------
    // Description : return the path of the var
    // --------------------------------------------------------------------------*/
	std::string getVarPath();



	/* ------------------------------- GETBINPATH -------------------------------
    // Description : return the path of the binary
    // --------------------------------------------------------------------------*/
	std::string getBinPath();



	std::string CeateDataPath(std::string PathData);
};