require "mspcore";
require "mspstrings";
- require "mspparser";
+ require "mspdatafile";
require "msppath";
require "sigc++-2.0";
#include <set>
#include <msp/core/error.h>
#include <msp/core/getopt.h>
-#include <msp/parser/parser.h>
+#include <msp/datafile/parser.h>
#include <msp/path/utils.h>
#include <msp/strings/utils.h>
#include <msp/time/units.h>
if(!in)
return -1;
- Parser::Parser parser(in, fn.str());
+ DataFile::Parser parser(in, fn.str());
Loader loader(*this, fn.subpath(0, fn.size()-1));
loader.load(parser);
#include <map>
#include <string>
#include <msp/core/application.h>
-#include <msp/parser/loader.h>
+#include <msp/datafile/loader.h>
#include <msp/path/path.h>
#include "config.h"
#include "misc.h"
static void usage(const char *, const char *, bool);
private:
- class Loader: public Msp::Parser::Loader
+ class Loader: public Msp::DataFile::Loader
{
public:
Loader(Builder &, const Msp::Path::Path &);
#include <list>
#include <string>
-#include <msp/parser/loader.h>
+#include <msp/datafile/loader.h>
#include "misc.h"
/**
class BuildInfo
{
public:
- class Loader: public Msp::Parser::Loader
+ class Loader: public Msp::DataFile::Loader
{
public:
Loader(BuildInfo &);
#define COMPONENT_H_
#include <string>
-#include <msp/parser/loader.h>
+#include <msp/datafile/loader.h>
#include <msp/path/path.h>
#include "buildinfo.h"
#include "misc.h"
{
public:
/// Loads a Component from file. Used from Package::Loader.
- class Loader: public Msp::Parser::Loader
+ class Loader: public Msp::DataFile::Loader
{
public:
Loader(Component &);
#ifndef CONDITION_H_
#define CONDITION_H_
-#include <msp/parser/loader.h>
+#include <msp/datafile/loader.h>
#include "buildinfo.h"
#include "misc.h"
#include "packageref.h"
class Condition
{
public:
- class Loader: public Msp::Parser::Loader
+ class Loader: public Msp::DataFile::Loader
{
public:
Loader(Condition &);
Path::stat(fn, st);
mtime=Time::TimeStamp::from_unixtime(st.st_mtime);
- Parser::Parser parser(in, fn.str());
+ DataFile::Parser parser(in, fn.str());
Loader loader(*this);
loader.load(parser);
}
#include <map>
#include <string>
-#include <msp/parser/loader.h>
+#include <msp/datafile/loader.h>
#include <msp/path/path.h>
#include <msp/time/timestamp.h>
#include "misc.h"
void finish();
void save() const;
private:
- class Loader: public Msp::Parser::Loader
+ class Loader: public Msp::DataFile::Loader
{
public:
Loader(Config &);
#include <list>
#include <string>
-#include <msp/parser/loader.h>
+#include <msp/datafile/loader.h>
#include "buildinfo.h"
#include "component.h"
#include "condition.h"
/**
A package is a distributable piece of software. They consist of one or more
Components and may depend on other packages. Packages also have configuration
-to determine where files are installed and which features to include (features
-NYI).
+to determine where files are installed and which features to include.
*/
class Package
{
};
/// Loads a package from a file.
- class Loader: public Msp::Parser::Loader
+ class Loader: public Msp::DataFile::Loader
{
public:
Loader(Package &);