OpenXLSX 1.10.0
Loading...
Searching...
No Matches
XLSlicerCache.hpp
Go to the documentation of this file.
1#ifndef OPENXLSX_XLSLICERCACHE_HPP
2#define OPENXLSX_XLSLICERCACHE_HPP
3
4#include "OpenXLSX-Exports.hpp"
5#include "XLXmlFile.hpp"
6#include <string>
7#include <string_view>
8#include <vector>
9
10namespace OpenXLSX
11{
12 class OPENXLSX_EXPORT XLSlicerCache final : public XLXmlFile
13 {
14 public:
18 XLSlicerCache() : XLXmlFile(nullptr) {}
19
23 explicit XLSlicerCache(XLXmlData* xmlData) : XLXmlFile(xmlData) {}
24
25 ~XLSlicerCache() = default;
26 XLSlicerCache(const XLSlicerCache& other) = default;
27 XLSlicerCache(XLSlicerCache&& other) noexcept = default;
28 XLSlicerCache& operator=(const XLSlicerCache& other) = default;
29 XLSlicerCache& operator=(XLSlicerCache&& other) noexcept = default;
30
34 std::string name() const;
35
39 void setName(std::string_view name);
40
44 std::string sourceName() const;
45
49 void setSourceName(std::string_view sourceName);
50
56 void syncWithPivotCache(const class XLPivotCacheDefinition& pivotCache, const std::vector<std::string>& selectedItems);
57 };
58} // namespace OpenXLSX
59
60#endif // OPENXLSX_XLSLICERCACHE_HPP
Definition XLPivotTable.hpp:186
Definition XLSlicerCache.hpp:13
XLSlicerCache(const XLSlicerCache &other)=default
XLSlicerCache()
Default constructor.
Definition XLSlicerCache.hpp:18
XLSlicerCache(XLSlicerCache &&other) noexcept=default
XLSlicerCache & operator=(const XLSlicerCache &other)=default
XLSlicerCache(XLXmlData *xmlData)
Constructor that wraps an XLXmlData pointer.
Definition XLSlicerCache.hpp:23
XLSlicerCache & operator=(XLSlicerCache &&other) noexcept=default
The XLXmlData class encapsulates the properties and behaviour of the .xml files in an ....
Definition XLXmlData.hpp:68
The XLXmlFile class provides an interface for derived classes to use. It functions as an ancestor to ...
Definition XLXmlFile.hpp:42
Definition IZipArchive.hpp:18