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_unknown
29 }
30 selector_type;
31
32 void
33 complete_selector(std::string const & orig_sel,
34 std::vector<std::pair<selector_type, std::string> > const & limit,
35 selector_type & type,
36 std::set<std::string> & completions,
37 app_state & app);
38 std::vector<std::pair<selector_type, std::string> >
39 parse_selector(std::string const & str,
40 app_state & app);
41
42}; // namespace selectors
43
44#endif // __SELECTORS_HH__

Archive Download this file

Branches

Tags

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