1 |
< |
#include "ZConsReader.hpp" |
2 |
< |
#include "simError.h" |
1 |
> |
#include "io/ZConsReader.hpp" |
2 |
> |
#include "utils/simError.h" |
3 |
|
|
4 |
|
ZConsReader::ZConsReader(SimInfo* info) |
5 |
|
:istream(NULL){ |
6 |
|
|
7 |
|
GenericData* data; |
8 |
< |
StringData* filename; |
8 |
> |
StringGenericData* filename; |
9 |
|
this->info = info; |
10 |
|
|
11 |
|
//retrieve output filename of z force |
12 |
< |
data = info->getProperty(ZCONSFILENAME_ID); |
12 |
> |
data = info->getPropertyByName(ZCONSFILENAME_ID); |
13 |
|
if(!data) { |
14 |
|
|
15 |
|
|
22 |
|
} |
23 |
|
else{ |
24 |
|
|
25 |
< |
filename = dynamic_cast<StringData*>(data); |
25 |
> |
filename = dynamic_cast<StringGenericData*>(data); |
26 |
|
|
27 |
|
if(!filename){ |
28 |
|
|