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