TableInfo.h Source File documentation

TableInfo.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 libmspub 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 __TABLEINFO_H__
11 #define __TABLEINFO_H__
12
13 #include <vector>
14
15 namespace libmspub
16 {
17
18 struct CellInfo
19 {
20 CellInfo()
21 : m_startRow()
22 , m_endRow()
23 , m_startColumn()
24 , m_endColumn()
25 {
26 }
27
28 unsigned m_startRow;
29 unsigned m_endRow;
30 unsigned m_startColumn;
31 unsigned m_endColumn;
32 };
33
34 struct TableInfo
35 {
36 std::vector<unsigned> m_rowOffsetsInEmu;
37 std::vector<unsigned> m_columnOffsetsInEmu;
38 unsigned m_numRows;
39 unsigned m_numColumns;
40 std::vector<CellInfo> m_cells;
41 TableInfo(unsigned numRows, unsigned numColumns) : m_rowOffsetsInEmu(),
42 m_columnOffsetsInEmu(), m_numRows(numRows), m_numColumns(numColumns),
43 m_cells()
44 {
45 }
46 };
47 } // namespace libmspub
48
49 #endif /* __TABLEINFO_H__ */
50 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub::TableInfo::m_numRows
unsigned m_numRows
Definition: TableInfo.h:38
libmspub::TableInfo
Definition: TableInfo.h:34
libmspub::CellInfo::m_endRow
unsigned m_endRow
Definition: TableInfo.h:29
libmspub::TableInfo::m_numColumns
unsigned m_numColumns
Definition: TableInfo.h:39
libmspub::TableInfo::m_columnOffsetsInEmu
std::vector< unsigned > m_columnOffsetsInEmu
Definition: TableInfo.h:37
libmspub::TableInfo::TableInfo
TableInfo(unsigned numRows, unsigned numColumns)
Definition: TableInfo.h:41
libmspub::CellInfo::m_startColumn
unsigned m_startColumn
Definition: TableInfo.h:30
libmspub::CellInfo::CellInfo
CellInfo()
Definition: TableInfo.h:20
libmspub::CellInfo::m_startRow
unsigned m_startRow
Definition: TableInfo.h:28
libmspub::TableInfo::m_cells
std::vector< CellInfo > m_cells
Definition: TableInfo.h:40
libmspub
Definition: Arrow.h:13
libmspub::TableInfo::m_rowOffsetsInEmu
std::vector< unsigned > m_rowOffsetsInEmu
Definition: TableInfo.h:36
libmspub::CellInfo::m_endColumn
unsigned m_endColumn
Definition: TableInfo.h:31
libmspub::CellInfo
Definition: TableInfo.h:18