blob: 7afad0a924c88e9d90b08be44f67a1c88f78444d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// load_grouppolicy.h
//
// Copyright 2001 Daniel Burrows
//
#ifndef LOAD_GROUPPOLICY_H
#define LOAD_GROUPPOLICY_H
#include <string>
/** \brief Routines to parse grouping policies.
*
*
* Grouping-policy configurations are written as follows:
*
* POLICY1,POLICY2(arg1,arg2,...,..,argN),POLICY3,...,POLICYN
*
* Each POLICY name specifies a way to sort at a particular level. Obviously,
* the policy names may not contain commas. Similarly, arg1..argN are arguments
* to the policies. Different policies, just to be confusing, may implement
* different handling of their arguments.
*
* If this ever gets totally out of control, it may be worthwhile to write a
* routine allowing other modules to register parsers for an individual policy.
* Right now I don't think this is necessary.
*
* \file load_grouppolicy.h
*/
class pkg_grouppolicy_factory;
pkg_grouppolicy_factory *parse_grouppolicy(std::string s);
// Parses the given string as a grouping-policy description.
#endif
|