-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathc_Transformation.h
More file actions
47 lines (37 loc) · 872 Bytes
/
c_Transformation.h
File metadata and controls
47 lines (37 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include "coreVariables.h"
#include "c_Input.h"
extern c_Input inputInstance;
class c_Transformation
{
private:
float wordcount(std::string text);
struct article {
int position; // index column
std::string type; // lgend label
std::string key_value; // legend indicator
std::string text; // text of article
float wc; // wordcount or other quantifier of article
};
struct column {
int position; // index column
std::vector <article> articles;
};
struct page {
int position; // index column
std::vector <column> columns;
};
struct copy {
std::string documentID; // title of newspaper
std::vector <page> pages;
};
std::vector <page> pages;
std::vector <column> columns;
std::vector<article> articles;
page emptyPage;
column emptyColumn;
article emptyArticle;
public:
void transformVector();
copy currentCopy;
};