alaCarte Maps
Renderer for OpenStreetMap tiles
unary_operation_node.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef _UNARY_OPERATION_NODE_HPP
23 #define _UNARY_OPERATION_NODE_HPP
24 
25 
26 #include "settings.hpp"
27 #include "stnode.hpp"
28 
29 
30 class GeoObject;
31 
32 namespace eval {
33 
34 namespace op {
35 
38 {
39  Nothing,
40  Not,
42 };
43 
44 }
45 
46 
47 
48 
49 
51  : public STNode
52 {
53 public:
54  typedef STNode base_type;
56 
57  UnaryOperationNode(op::UnaryOperationEnum operation, const node_ptr& enclosed);
58 
59  virtual string eval(GeoObject* obj) const;
60 private:
62  node_ptr enclosed;
63 };
64 
65 
66 
67 
68 }
69 
70 
71 #endif
This file is part of alaCarte.
UnaryOperationEnum
Enum with all unary operations.
The interface for nodes in the syntax tree.
Definition: stnode.hpp:37
shared_ptr< STNode > node_ptr
Shared ptr to this node.
Definition: stnode.hpp:41
op::UnaryOperationEnum operation