-/* $Id$
-
-This file is part of R²C²
-Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#include <map>
#include <msp/core/application.h>
#include <msp/core/getopt.h>
using namespace Msp;
using namespace R2C2;
-class ShoppingList: public Application
+class ShoppingList: public RegisteredApplication<ShoppingList>
{
private:
class InventoryLoader: public DataFile::Loader
map<ArticleNumber, unsigned> inventory;
map<ArticleNumber, unsigned> layout;
- static Application::RegApp<ShoppingList> reg;
-
public:
ShoppingList(int, char **);
int main();
};
-Application::RegApp<ShoppingList> ShoppingList::reg;
-
ShoppingList::ShoppingList(int argc, char **argv)
{
string inv_fn = "inventory";
{
add("track", &LayoutLoader::track);
add("base");
+ add("beamgate");
add("route");
+ add("signal");
+ add("terrain");
add("zone");
}