2 // Don't edit this file. This file is generated from xml description..
4 #include "bbcreaMaracasVisuReadAxisTree3D.h"
5 #include "bbcreaMaracasVisuPackage.h"
12 namespace bbcreaMaracasVisu
15 BBTK_ADD_BLACK_BOX_TO_PACKAGE(creaMaracasVisu,ReadAxisTree3D)
16 BBTK_BLACK_BOX_IMPLEMENTATION(ReadAxisTree3D,bbtk::AtomicBlackBox);
18 // Don't edit this file. This file is generated from xml description..
20 void ReadAxisTree3D::Process()
23 // THE MAIN PROCESSING METHOD BODY
24 // Here we simply set the input 'In' value to the output 'Out'
25 // And print out the output value
26 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
27 // void bbSet{Input|Output}NAME(const TYPE&)
28 // const TYPE& bbGet{Input|Output}NAME() const
30 // * NAME is the name of the input/output
31 // (the one provided in the attribute 'name' of the tag 'input')
32 // * TYPE is the C++ type of the input/output
33 // (the one provided in the attribute 'type' of the tag 'input')
35 printf("EED ReadAxisTree3D::Process start \n");
37 std::vector< std::vector<std::string> * > tlst;
40 for( i=0 ; i<bbGetInputDimension() ; i++)
42 tlst.push_back( new std::vector<std::string> );
45 int numberOfLines = 0;
47 std::vector<std::string> *vecData;
48 FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r+" );
53 for( i=0 ; i<bbGetInputDimension() ; i++)
55 fscanf(ff1,"%s",tmpValue);
57 vecData->push_back( tmpValue );
63 printf("bbcreaMaracasVisuReadAxisTree3D::Process ...Error... reading file InputFileName_Points>%s", bbGetInputFileName().c_str() );
66 i=1; if (i<=bbGetInputDimension()) { bbSetOutputlstData1( *(tlst[i-1]) ); }
67 i=2; if (i<=bbGetInputDimension()) { bbSetOutputlstData2( *(tlst[i-1]) ); }
68 i=3; if (i<=bbGetInputDimension()) { bbSetOutputlstData3( *(tlst[i-1]) ); }
69 i=4; if (i<=bbGetInputDimension()) { bbSetOutputlstData4( *(tlst[i-1]) ); }
70 i=5; if (i<=bbGetInputDimension()) { bbSetOutputlstData5( *(tlst[i-1]) ); }
71 i=6; if (i<=bbGetInputDimension()) { bbSetOutputlstData6( *(tlst[i-1]) ); }
72 i=7; if (i<=bbGetInputDimension()) { bbSetOutputlstData7( *(tlst[i-1]) ); }
73 i=8; if (i<=bbGetInputDimension()) { bbSetOutputlstData8( *(tlst[i-1]) ); }
74 i=9; if (i<=bbGetInputDimension()) { bbSetOutputlstData9( *(tlst[i-1]) ); }
76 printf("EED ReadAxisTree3D::Process end \n");
82 // Don't edit this file. This file is generated from xml description..
84 void ReadAxisTree3D::bbUserSetDefaultValues()
87 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
88 // Here we initialize the input 'In' to 0
90 bbSetInputDimension(1);
91 bbSetInputFileName("");
95 // Don't edit this file. This file is generated from xml description..
97 void ReadAxisTree3D::bbUserInitializeProcessing()
100 // THE INITIALIZATION METHOD BODY :
102 // but this is where you should allocate the internal/output pointers
108 // Don't edit this file. This file is generated from xml description..
110 void ReadAxisTree3D::bbUserFinalizeProcessing()
113 // THE FINALIZATION METHOD BODY :
115 // but this is where you should desallocate the internal/output pointers
120 // EO namespace bbcreaMaracasVisu