Repository.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Report
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2013, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeReport/Base.h"
16 
17 #include "CeeCore/RefCountedObject.h"
18 #include "CeeCore/Image.h"
19 #include "CeeCore/Str.h"
20 
21 #include <string>
22 
23 namespace cee {
24 namespace rep {
25 
26 class Snapshot;
27 
28 //==================================================================================================
29 //
30 //
31 //
32 //==================================================================================================
33 class CEE_REP_EXPORT Repository : public RefCountedObject
34 {
35 public:
36  Repository();
37  virtual ~Repository();
38 
39  bool loadRepository(const Str& filename);
40  bool saveRepository(const Str& filename);
41 
42  size_t snapshotCount() const;
43  Snapshot* snapshot(size_t index);
44  const Snapshot* snapshot(size_t index) const;
45  void addSnapshot(Snapshot* snapshot);
46  bool removeSnapshot(size_t index);
47  void removeAllSnapshots();
48 
49 private:
50  CEE_PRIVATE_IMPL(Repository);
51  CEE_DISALLOW_COPY_AND_ASSIGN(Repository);
52 };
53 
54 } // namespace rep
55 } // namespace cee
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppComponent.cpp:26
A general unicode based string class.
Definition: Str.h:28
Collection of snapshots used in report generation.
Definition: Repository.h:33
An image, 3D model or tabular data describing a snapshot.
Definition: Snapshot.h:36
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34