monotone

monotone Mtn Source Tree

Root/selectors.hh

1// -*- mode: C++; c-file-style: "gnu"; indent-tabs-mode: nil -*-
2// copyright (C) 2002, 2003 graydon hoare <graydon@pobox.com>
3// all rights reserved.
4// licensed to the public under the terms of the GNU GPL (>= 2)
5// see the file COPYING for details
6
7#ifndef __SELECTORS_HH__
8#define __SELECTORS_HH__
9
10#include <string>
11#include <vector>
12#include <algorithm>
13#include <set>
14
15class app_state;
16
17namespace selectors
18{
19
20 typedef enum
21 {
22 sel_author,
23 sel_branch,
24 sel_date,
25 sel_tag,
26 sel_ident,
27 sel_cert,
28 sel_earlier,
29 sel_later,
30 sel_unknown
31 }
32 selector_type;
33
34 void
35 complete_selector(std::string const & orig_sel,
36 std::vector<std::pair<selector_type, std::string> > const & limit,
37 selector_type & type,
38 std::set<std::string> & completions,
39 app_state & app);
40 std::vector<std::pair<selector_type, std::string> >
41 parse_selector(std::string const & str,
42 app_state & app);
43
44}; // namespace selectors
45
46#endif // __SELECTORS_HH__

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status