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_head,
25 sel_date,
26 sel_tag,
27 sel_ident,
28 sel_cert,
29 sel_earlier,
30 sel_later,
31 sel_unknown
32 }
33 selector_type;
34
35 void
36 complete_selector(std::string const & orig_sel,
37 std::vector<std::pair<selector_type, std::string> > const & limit,
38 selector_type & type,
39 std::set<std::string> & completions,
40 app_state & app);
41 std::vector<std::pair<selector_type, std::string> >
42 parse_selector(std::string const & str,
43 app_state & app);
44
45}; // namespace selectors
46
47#endif // __SELECTORS_HH__

Archive Download this file

Branches

Tags

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