Table.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/Str.h"
19 
20 #include <string>
21 
22 namespace cee {
23 namespace rep {
24 
25 //==================================================================================================
26 //
27 //
28 //
29 //==================================================================================================
30 class CEE_REP_EXPORT Table : public RefCountedObject
31 {
32 public:
33  Table(size_t numRows, size_t numCols);
34  Table(const Table& other);
35  virtual ~Table();
36 
37  Table& operator=(const Table& other);
38 
39  Str value(size_t row, size_t col) const;
40  bool setValue(size_t row, size_t col, const Str& val);
41  size_t rowCount() const;
42  size_t columnCount() const;
43 
44  Str chartYAxisTitle() const;
45  void setChartYAxisTitle(const Str& yAxisTitle);
46  Str chartXAxisTitle() const;
47  void setChartXAxisTitle(const Str& xAxisTitle);
48 
49 private:
50  CEE_PRIVATE_IMPL(Table);
51 };
52 
53 } // namespace rep
54 } // 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
Base class for all reference counted objects with built-in support for intrusive reference counting...
Definition: RefCountedObject.h:34
Data table structure for use in report generation.
Definition: Table.h:30