74{
75 std::vector<G4String> wl, wlnew;
76
77#ifdef G4VERBOSE
79 {
80 G4cout <<
" Number of geometry data files = " << theTextFiles.size()
82 }
83#endif
84
85 if(theTextFiles.size() == 0)
86 {
88 "No files to read ...");
89 }
90
91 for(std::size_t ii = 0; ii < theTextFiles.size(); ++ii)
92 {
93#ifdef G4VERBOSE
95 {
96 G4cout <<
" Reading data file " << theTextFiles[ii] <<
G4endl;
97 }
98#endif
99
101
103 for(;;)
104 {
105 ++nlines;
107 {
108 break;
109 }
110
111 if(wlnew[0].c_str()[0] != ':')
112 {
113 wl.insert(wl.end(), wlnew.begin(), wlnew.end());
114#ifdef G4VERBOSE
116 {
118 }
119#endif
120 continue;
121 }
122 else
123 {
124
125#ifdef G4VERBOSE
127 {
129 }
130#endif
131 if(nlines != 1)
132 {
134 {
136 }
137 }
138 wl = wlnew;
139 }
140 }
141
142 if(wl.size() != 0)
143 {
145 {
147 }
148 }
149 }
150 return true;
151}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4GLOB_DLL std::ostream G4cout
G4int GetWordsInLine(std::vector< G4String > &wl)
static G4tgrFileIn & GetInstance(const G4String &name)
void DumpException(const G4String &sent)
virtual G4bool ProcessLine(const std::vector< G4String > &wl)
static G4int GetVerboseLevel()
static void DumpVS(const std::vector< G4String > &wl, const char *msg)