64 lines
931 B
C++
64 lines
931 B
C++
#include "ycfg.h"
|
|
#include "..\typecasts\typecasts.h"
|
|
|
|
namespace YCfg
|
|
{
|
|
//CVersion
|
|
bool CVersion::set(std::string versionstring)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
std::string CVersion::get()
|
|
{
|
|
int flag;
|
|
if(stable) flag = 0; else
|
|
if(alpha) flag = 1; else
|
|
if(beta) flag = 2;
|
|
|
|
return inttostr(major)+"."+inttostr(minor)+"."+inttostr(release)+"."+inttostr(builds)+"-"+inttostr(flag);
|
|
}
|
|
|
|
//CYCfgHeader
|
|
bool CYCfgHeader::checkYCfgHeader()
|
|
{
|
|
return false;
|
|
}
|
|
void CYCfgHeader::setYCfgHeader()
|
|
{
|
|
}
|
|
std::string CYCfgHeader::getYCfgHeader()
|
|
{
|
|
return "";
|
|
}
|
|
std::string CYCfgHeader::getYCfgHeaderVersion()
|
|
{
|
|
return "";
|
|
}
|
|
|
|
//CYCfg
|
|
CYCfg::CYCfg()
|
|
{
|
|
}
|
|
|
|
CYCfg::CYCfg(std::string path)
|
|
{
|
|
loadYCfgFile(path);
|
|
}
|
|
|
|
CYCfg::~CYCfg()
|
|
{
|
|
//Free all
|
|
}
|
|
|
|
bool CYCfg::loadYCfgFile(std::string path)
|
|
{
|
|
return loadFromFile(&path);
|
|
//Parse File
|
|
}
|
|
|
|
int CYCfg::getSections(CStringList *list)
|
|
{
|
|
return 0;
|
|
}
|
|
} |