These have no state and only static methods. Make them namespaces.
This commit is contained in:
@@ -1,21 +1,20 @@
|
|||||||
/* CourseLoaderCRS - Reads a Course from an .CRS file. */
|
/* CourseLoaderCRS - Reads a Course from an .CRS file. */
|
||||||
|
|
||||||
#ifndef CourseLoaderCRS_H
|
#ifndef COURSE_LOADER_CRS_H
|
||||||
#define CourseLoaderCRS_H
|
#define COURSE_LOADER_CRS_H
|
||||||
|
|
||||||
#include "GameConstantsAndTypes.h"
|
#include "GameConstantsAndTypes.h"
|
||||||
class Course;
|
class Course;
|
||||||
class MsdFile;
|
class MsdFile;
|
||||||
|
|
||||||
class CourseLoaderCRS
|
namespace CourseLoaderCRS
|
||||||
{
|
{
|
||||||
public:
|
bool LoadFromCRSFile( const RString &sPath, Course &out );
|
||||||
static bool LoadFromCRSFile( const RString &sPath, Course &out );
|
bool LoadFromMsd( const RString &sPath, const MsdFile &msd, Course &out, bool bFromCache );
|
||||||
static bool LoadFromMsd( const RString &sPath, const MsdFile &msd, Course &out, bool bFromCache );
|
bool LoadFromBuffer( const RString &sPath, const RString &sBuffer, Course &out );
|
||||||
static bool LoadFromBuffer( const RString &sPath, const RString &sBuffer, Course &out );
|
bool LoadEditFromFile( const RString &sEditFilePath, ProfileSlot slot );
|
||||||
static bool LoadEditFromFile( const RString &sEditFilePath, ProfileSlot slot );
|
bool LoadEditFromBuffer( const RString &sBuffer, const RString &sPath, ProfileSlot slot );
|
||||||
static bool LoadEditFromBuffer( const RString &sBuffer, const RString &sPath, ProfileSlot slot );
|
}
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,19 +1,18 @@
|
|||||||
/* CourseWriterCRS - Writes a Course to an .CRS file. */
|
/* CourseWriterCRS - Writes a Course to an .CRS file. */
|
||||||
|
|
||||||
#ifndef CourseWriterCRS_H
|
#ifndef COURSE_WRITER_CRS_H
|
||||||
#define CourseWriterCRS_H
|
#define COURSE_WRITER_CRS_H
|
||||||
|
|
||||||
class Course;
|
class Course;
|
||||||
class RageFileBasic;
|
class RageFileBasic;
|
||||||
|
|
||||||
class CourseWriterCRS
|
namespace CourseWriterCRS
|
||||||
{
|
{
|
||||||
public:
|
bool Write( const Course &course, RageFileBasic &f, bool bSavingCache );
|
||||||
static bool Write( const Course &course, RageFileBasic &f, bool bSavingCache );
|
bool Write( const Course &course, const RString &sPath, bool bSavingCache );
|
||||||
static bool Write( const Course &course, const RString &sPath, bool bSavingCache );
|
void GetEditFileContents( const Course *pCourse, RString &sOut );
|
||||||
static void GetEditFileContents( const Course *pCourse, RString &sOut );
|
void WriteEditFileToMachine( const Course *pCourse );
|
||||||
static void WriteEditFileToMachine( const Course *pCourse );
|
}
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user