GnuCash
5.6-150-g038405b370+
gnucash
import-export
csv-imp
gnc-tokenizer-dummy.hpp
Go to the documentation of this file.
1
/********************************************************************\
2
* gnc-tokenizer-dummy.hpp - takes a file and converts it into a *
3
* two-dimensional vector of strings (table) *
4
* each row will only have one single column *
5
* *
6
* This program is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU General Public License as *
8
* published by the Free Software Foundation; either version 2 of *
9
* the License, or (at your option) any later version. *
10
* *
11
* This program is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License*
17
* along with this program; if not, contact: *
18
* *
19
* Free Software Foundation Voice: +1-617-542-5942 *
20
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21
* Boston, MA 02110-1301, USA gnu@gnu.org *
22
\********************************************************************/
23
35
#ifndef GNC_DUMMY_TOKENIZER_HPP
36
#define GNC_DUMMY_TOKENIZER_HPP
37
38
#include <config.h>
39
40
#include <iostream>
41
#include <fstream>
// fstream
42
#include <vector>
43
#include <string>
44
#include "
gnc-tokenizer.hpp
"
45
46
class
GncDummyTokenizer
:
public
GncTokenizer
47
{
48
public
:
49
GncDummyTokenizer
() =
default
;
// default constructor
50
GncDummyTokenizer
(
const
GncDummyTokenizer
&) =
default
;
// copy constructor
51
GncDummyTokenizer
& operator=(
const
GncDummyTokenizer
&) =
default
;
// copy assignment
52
GncDummyTokenizer
(
GncDummyTokenizer
&&) =
default
;
// move constructor
53
GncDummyTokenizer
& operator=(
GncDummyTokenizer
&&) =
default
;
// move assignment
54
~
GncDummyTokenizer
() =
default
;
// destructor
55
56
int
tokenize()
override
;
57
};
58
59
#endif
gnc-tokenizer.hpp
Class convert a file into vector of string vectors.
GncDummyTokenizer
Definition:
gnc-tokenizer-dummy.hpp:46
GncTokenizer
Definition:
gnc-tokenizer.hpp:57
Generated by
1.8.14