2012-07-18 21:59:03 +03:00
|
|
|
#pragma once
|
2006-09-05 00:06:23 +03:00
|
|
|
|
2012-09-11 21:45:42 +03:00
|
|
|
|
2016-02-23 14:53:31 +02:00
|
|
|
#include "ref.hh"
|
|
|
|
|
2006-09-05 00:06:23 +03:00
|
|
|
#include <list>
|
|
|
|
#include <set>
|
2017-04-13 16:55:38 +03:00
|
|
|
#include <map>
|
2006-09-05 00:06:23 +03:00
|
|
|
|
2014-10-20 19:15:50 +03:00
|
|
|
|
2006-09-05 00:06:23 +03:00
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
using std::list;
|
|
|
|
using std::set;
|
|
|
|
using std::vector;
|
2020-05-12 00:52:15 +03:00
|
|
|
using std::string;
|
2017-05-11 18:06:07 +03:00
|
|
|
|
2020-05-14 00:56:39 +03:00
|
|
|
typedef list<string> Strings;
|
|
|
|
typedef set<string> StringSet;
|
|
|
|
typedef std::map<string, string> StringMap;
|
2006-09-05 00:06:23 +03:00
|
|
|
|
|
|
|
/* Paths are just strings. */
|
2020-04-24 23:57:51 +03:00
|
|
|
|
2020-05-14 00:56:39 +03:00
|
|
|
typedef string Path;
|
2006-09-05 00:06:23 +03:00
|
|
|
typedef list<Path> Paths;
|
|
|
|
typedef set<Path> PathSet;
|
|
|
|
|
2014-03-28 17:59:26 +02:00
|
|
|
|
2020-03-30 17:04:18 +03:00
|
|
|
/* Helper class to run code at startup. */
|
|
|
|
template<typename T>
|
|
|
|
struct OnStartup
|
|
|
|
{
|
|
|
|
OnStartup(T && t) { t(); }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-09-05 00:06:23 +03:00
|
|
|
}
|