-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfill_decoder.hh
66 lines (57 loc) · 1.72 KB
/
fill_decoder.hh
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//
// fill_decoder.hh
//
// Created by Erick Li on 05/29/19.
// Copyright © 2019 Erick Li. All rights reserved.
//
#ifndef __FILL_DECODER_H__
#define __FILL_DECODER_H__
#include <fstream>
#include <string>
#include <iostream>
/**
* The main function of fill pattern decoder. It can decode the pattern of a
* fill symbol. A fill symbol describes areal geometries.
* \param (See json_writer.hh)
* \param (See json_writer.hh)
* \param (See json_writer.hh)
* \param a double pointer pointing to the last byte of the data block
*/
void decodeFillPattern(char **cursor, std::string &jstring, int level,
char **tail);
/**
* Decode the symbol flow, which is the largest and most essential pipeline in
* the model.
* \param (See json_writer.hh)
* \param (See json_writer.hh)
* \param (See json_writer.hh)
* \param type of the fill decoder:
* 0: Normal decoder;
* 1: Mask symbol decoder.
*/
void decodeLayer(char **cursor, std::string &jstring, int level, int type);
/**
* Decode the pattern of Simple Fill Symbol
* \param (See json_writer.hh)
* \param (See json_writer.hh)
* \param (See json_writer.hh)
* \param type of the process:
* 0: Normal process;
* 1: Symbol process.
*/
void decodeSimpleFill(char **cursor, std::string &jstring, int level, int type);
/**
* Decode the pattern of Line Fill Symbol
* \param (See json_writer.hh)
* \param (See json_writer.hh)
* \param (See json_writer.hh)
*/
void decodeLineFill(char **cursor, std::string &jstring, int level);
/**
* Decode the pattern of Marker Fill Symbol
* \param (See json_writer.hh)
* \param (See json_writer.hh)
* \param (See json_writer.hh)
*/
void decodeMarkerFill(char **cursor, std::string &jstring, int level);
#endif