IWORKZoneManager.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libetonyek project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef IWORKZONEMANAGER_H_INCLUDED
11 #define IWORKZONEMANAGER_H_INCLUDED
12 
13 #include <deque>
14 #include <stack>
15 
16 #include "IWORKOutputElements.h"
17 #include "IWORKTypes.h"
18 
19 namespace libetonyek
20 {
21 
30 {
31  // disable copying
34 
35  typedef std::deque<IWORKOutputElements> ZoneList_t;
36  typedef std::stack<IWORKOutputElements> ZoneStack_t;
37 
38 public:
41 
44  void push();
45 
48  void pop();
49 
57 
67  const IWORKOutputElements &get(IWORKZoneID_t id) const;
68 
74  const IWORKOutputElements &getCurrent() const;
75 
76 private:
79 };
80 
81 }
82 
83 #endif // IWORKZONEMANAGER_H_INCLUDED
84 
85 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
IWORKZoneID_t save()
Save the current zone.
Definition: IWORKZoneManager.cpp:39
ZoneList_t m_saved
Definition: IWORKZoneManager.h:78
std::stack< IWORKOutputElements > ZoneStack_t
Definition: IWORKZoneManager.h:36
Definition: IWORKOutputElements.h:25
int id
Definition: IWORKToken.cpp:44
IWORKOutputElements & getCurrent()
Get the current zone.
Definition: IWORKZoneManager.cpp:57
ZoneStack_t m_active
Definition: IWORKZoneManager.h:77
IWORKZoneManager()
Definition: IWORKZoneManager.cpp:15
~IWORKZoneManager()
Definition: IWORKZoneManager.cpp:22
A manager for output zones.
Definition: IWORKZoneManager.h:29
IWORKZoneManager & operator=(const IWORKZoneManager &)
void push()
Push a new zone onto the stack.
Definition: IWORKZoneManager.cpp:28
unsigned IWORKZoneID_t
Definition: IWORKTypes_fwd.h:22
void pop()
Pop a zone from the stack.
Definition: IWORKZoneManager.cpp:33
std::deque< IWORKOutputElements > ZoneList_t
Definition: IWORKZoneManager.h:35

Generated for libetonyek by doxygen 1.8.5