BuildInfo::Loader::Loader(BuildInfo &bi):
- binfo(bi)
+ DataFile::ObjectLoader<BuildInfo>(bi)
{
add("cflag", &Loader::cflag);
add("incpath", &Loader::incpath);
void BuildInfo::Loader::cflag(const std::string &s)
{
- binfo.cflags.push_back(s);
+ obj.cflags.push_back(s);
}
void BuildInfo::Loader::incpath(const std::string &s)
{
- binfo.incpath.push_back(s);
+ obj.incpath.push_back(s);
}
void BuildInfo::Loader::define(const std::string &s)
{
- binfo.defines.push_back(s);
+ obj.defines.push_back(s);
}
void BuildInfo::Loader::ldflag(const std::string &s)
{
- binfo.ldflags.push_back(s);
+ obj.ldflags.push_back(s);
}
void BuildInfo::Loader::libpath(const std::string &s)
{
- binfo.libpath.push_back(s);
+ obj.libpath.push_back(s);
}
void BuildInfo::Loader::library(const std::string &s)
{
- binfo.libs.push_back(s);
+ obj.libs.push_back(s);
}
void BuildInfo::Loader::warning(const std::string &s)
{
- binfo.warnings.push_back(s);
+ obj.warnings.push_back(s);
}
#include <list>
#include <string>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
#include "misc.h"
/**
class BuildInfo
{
public:
- class Loader: public Msp::DataFile::Loader
+ class Loader: public Msp::DataFile::ObjectLoader<BuildInfo>
{
- private:
- BuildInfo &binfo;
-
public:
Loader(BuildInfo &);
private: