VSDLayerList.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 libvisio 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 __VSDLAYERLIST_H__
11#define __VSDLAYERLIST_H__
12
13#include <map>
14#include <vector>
15#include <boost/optional.hpp>
16#include "VSDTypes.h"
17
18namespace libvisio
19{
20
22{
23 VSDLayer();
24 VSDLayer(const VSDLayer &layer);
25 ~VSDLayer();
26 VSDLayer &operator=(const VSDLayer &layer);
27
28 boost::optional<Colour> m_colour;
31};
32
34{
35public:
37 VSDLayerList(const VSDLayerList &layerList);
39 VSDLayerList &operator=(const VSDLayerList &layerList);
40
41 void clear();
42
43 void addLayer(unsigned id, const VSDLayer &layer);
44
45 const Colour *getColour(const std::vector<unsigned> &ids);
46 bool getVisible(const std::vector<unsigned> &ids);
47 bool getPrintable(const std::vector<unsigned> &ids);
48
49private:
50 std::map<unsigned, VSDLayer> m_elements;
51};
52
53
54
55
56} // namespace libvisio
57
58#endif // __VSDLAYERLIST_H__
59/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
bool getPrintable(const std::vector< unsigned > &ids)
Definition VSDLayerList.cpp:105
VSDLayerList()
Definition VSDLayerList.cpp:30
void addLayer(unsigned id, const VSDLayer &layer)
Definition VSDLayerList.cpp:63
VSDLayerList & operator=(const VSDLayerList &layerList)
Definition VSDLayerList.cpp:42
void clear()
Definition VSDLayerList.cpp:58
const Colour * getColour(const std::vector< unsigned > &ids)
Definition VSDLayerList.cpp:68
~VSDLayerList()
Definition VSDLayerList.cpp:53
std::map< unsigned, VSDLayer > m_elements
Definition VSDLayerList.h:50
bool getVisible(const std::vector< unsigned > &ids)
Definition VSDLayerList.cpp:89
Definition libvisio_utils.h:49
Definition VSDTypes.h:71
Definition VSDLayerList.h:22
bool m_visible
Definition VSDLayerList.h:29
bool m_printable
Definition VSDLayerList.h:30
boost::optional< Colour > m_colour
Definition VSDLayerList.h:28
VSDLayer()
Definition VSDLayerList.cpp:12
~VSDLayer()
Definition VSDLayerList.cpp:17
VSDLayer & operator=(const VSDLayer &layer)
Definition VSDLayerList.cpp:19

Generated for libvisio by doxygen 1.14.0