~azzar1/unity/scale-left-padding

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/XPathQueryPart.h

  • Committer: Andrea Azzarone
  • Date: 2011-12-19 22:18:53 UTC
  • mfrom: (1792 unity)
  • mto: This revision was merged to the branch mainline in revision 1833.
  • Revision ID: azzaronea@gmail.com-20111219221853-wyy8fqwxk78s85ct
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
 
2
/*
 
3
 * Copyright (C) 2010 Canonical Ltd
 
4
 *
 
5
 * This program is free software: you can redistribute it and/or modify
 
6
 * it under the terms of the GNU General Public License version 3 as
 
7
 * published by the Free Software Foundation.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Authored by: Thomi Richards <thomi.richards@canonical.com>
 
18
 */
 
19
 
 
20
#include <string>
 
21
 
 
22
#ifndef _XPATH_QUERY_PART
 
23
#define _XPATH_QUERY_PART 1
 
24
 
 
25
namespace unity
 
26
{
 
27
namespace debug
 
28
{
 
29
  class Introspectable;
 
30
  // Stores a part of an XPath query.
 
31
  class XPathQueryPart
 
32
  {
 
33
  public:
 
34
    XPathQueryPart(std::string const& query_part);
 
35
    bool Matches(Introspectable* node) const;
 
36
  private:
 
37
    std::string node_name_;
 
38
    std::string param_name_;
 
39
    std::string param_value_;
 
40
  };
 
41
 
 
42
}
 
43
}
 
44
 
 
45
#endif
 
 
b'\\ No newline at end of file'