1 |
bearsoft |
1.1 |
#include "../../String/String.h"
|
2 |
|
|
#include "../../String/StringInput.h"
|
3 |
|
|
#include "../../String/ConfigInput.h"
|
4 |
|
|
#include "../../System/System.h"
|
5 |
|
|
#include "StringTest9.h"
|
6 |
|
|
#include "../../System/SystemDefine.h"
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
StringTest9::StringTest9(){}
|
10 |
|
|
StringTest9::~StringTest9(){}
|
11 |
|
|
|
12 |
|
|
void StringTest9::run()
|
13 |
|
|
{
|
14 |
|
|
ConfigInput *configInput = new ConfigInput();
|
15 |
|
|
|
16 |
|
|
configInput->readFile("data/config.txt");
|
17 |
|
|
|
18 |
|
|
// System::println(configInput->getData(0,0));
|
19 |
|
|
|
20 |
|
|
String type="arne";
|
21 |
|
|
String key="olle";
|
22 |
|
|
|
23 |
|
|
System::println(configInput->getData(type,key));
|
24 |
|
|
|
25 |
|
|
String type2="matrix";
|
26 |
|
|
String key2="nonHuman";
|
27 |
|
|
|
28 |
|
|
System::println(configInput->getData(type2,key2));
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
delete configInput;
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
} |