33 char* cp = m_file->ReadLine(); \
46 m_fileline = m_file->LineNumber(); \
50 m_error = " * [INFO] input line too long"; \
65 if(
nullptr == aLineReader )
72 wxString tname =
m_file->GetSource();
74 wxFileName fn( tname );
87 if(
m_buf.compare( 0, 16,
"#VRML V1.0 ascii" ) == 0 )
100 if(
m_buf.compare( 0, 15,
"#VRML V2.0 utf8" ) == 0 )
126 m_error =
"not a valid VRML file: '";
163 while( !
m_buf.empty() && ( *
m_buf.rbegin() ==
'\r' || *
m_buf.rbegin() ==
'\n' ) )
168 std::string::iterator sS =
m_buf.begin();
169 std::string::iterator eS =
m_buf.end();
173 if( ( ( *sS ) & 0x80 ) )
175 m_error =
" non-ASCII character sequence in VRML1 file";
263 size_t ssize =
m_buf.size();
307 size_t ssize =
m_buf.size();
322 std::ostringstream ostr;
323 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
324 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
326 ostr <<
" -- invalid name";
335 std::ostringstream ostr;
336 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
337 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
339 ostr <<
" -- invalid character in name";
347 std::ostringstream ostr;
348 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
349 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
351 ostr <<
" -- name must not start with a digit";
374 std::ostringstream ostr;
375 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
376 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
377 ostr <<
" * [INFO] " <<
m_error;
385 std::ostringstream ostr;
386 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
387 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
388 ostr <<
" * [INFO] expecting character '{' at line " <<
m_fileline;
408 std::ostringstream ostr;
409 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
410 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
411 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
413 ostr <<
" * [INFO] " <<
m_error;
456 std::ostringstream ostr;
457 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
458 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
459 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
461 ostr <<
" * [INFO] " <<
m_error;
471 std::ostringstream ostr;
472 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
473 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
474 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
476 ostr <<
" * [INFO] " <<
m_error;
497 std::ostringstream ostr;
498 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
499 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
500 ostr <<
" * [INFO] " <<
m_error;
508 std::ostringstream ostr;
509 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
510 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
511 ostr <<
" * [INFO] expecting character '[' at line " <<
m_fileline;
529 std::ostringstream ostr;
530 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
531 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
532 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
534 ostr <<
" * [INFO] " <<
m_error;
577 std::ostringstream ostr;
578 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
579 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
580 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
582 ostr <<
" * [INFO] " <<
m_error;
592 std::ostringstream ostr;
593 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
594 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
595 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
597 ostr <<
" * [INFO] " <<
m_error;
627 std::ostringstream ostr;
628 ostr <<
"invalid VRML file; expecting string at line " << ifline <<
629 " but found nothing";
644 m_error =
"invalid VRML2 file (string not quoted)";
654 std::ostringstream ostr;
655 ostr <<
"invalid VRML1 file at lines " << ifline <<
"--" <<
m_fileline;
676 aSFString.append( 1,
'\n' );
680 std::ostringstream ostr;
681 ostr <<
"invalid VRML1 file at lines " << ifline <<
"--" <<
m_fileline;
682 ostr <<
"; could not find end of string\n";
693 aSFString.append( 1,
'\n' );
706 aSFString.append( 1,
'"' );
737 if( !tmp.compare(
"0" ) )
741 else if( !tmp.compare(
"1" ) )
745 else if( !tmp.compare(
"TRUE" ) )
749 else if( !tmp.compare(
"FALSE" ) )
755 std::ostringstream ostr;
756 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
757 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
758 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
760 ostr <<
" * [INFO] expected one of 0, 1, TRUE, FALSE but got '" << tmp <<
"'\n";
784 if( aSFColor.x < 0.0 || aSFColor.x > 1.0 || aSFColor.y < 0.0 || aSFColor.y > 1.0
785 || aSFColor.z < 0.0 || aSFColor.z > 1.0 )
787 std::ostringstream ostr;
788 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
789 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
790 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
792 ostr <<
" * [INFO] invalid RGB value in color triplet";
831 std::ostringstream ostr;
832 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
833 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
834 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
836 ostr <<
" * [INFO] " <<
m_error;
842 std::istringstream istr;
846 if( istr.fail() || !istr.eof() )
848 std::ostringstream ostr;
849 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
850 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
851 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
853 ostr <<
" * [INFO] invalid character in SFFloat";
891 std::ostringstream ostr;
892 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
893 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
894 ostr <<
" * [INFO] line " << fileline<<
", char " << linepos <<
" -- ";
896 ostr <<
" * [INFO] " <<
m_error;
902 if( tmp.find(
"0x" ) != std::string::npos )
906 std::stringstream sstr;
907 sstr << std::hex << tmp;
912 std::istringstream istr;
916 if( istr.fail() || !istr.eof() )
918 std::ostringstream ostr;
919 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
920 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
921 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
923 ostr <<
" * [INFO] invalid character in SFInt";
964 for(
int i = 0; i < 4; ++i )
968 std::ostringstream ostr;
969 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
970 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
971 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
973 ostr <<
" * [INFO] " <<
m_error;
979 std::istringstream istr;
983 if( istr.fail() || !istr.eof() )
985 std::ostringstream ostr;
986 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
987 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
988 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
990 ostr <<
" * [INFO] invalid character in space delimited quartet";
998 aSFRotation.x = trot[0];
999 aSFRotation.y = trot[1];
1000 aSFRotation.z = trot[2];
1001 aSFRotation.w = trot[3];
1037 for(
int i = 0; i < 2; ++i )
1041 std::ostringstream ostr;
1042 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1043 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1044 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1046 ostr <<
" * [INFO] " <<
m_error;
1052 std::istringstream istr;
1056 if( istr.fail() || !istr.eof() )
1058 std::ostringstream ostr;
1059 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1060 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1061 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1063 ostr <<
" * [INFO] invalid character in space delimited pair";
1071 aSFVec2f.x = tcol[0];
1072 aSFVec2f.y = tcol[1];
1109 for(
int i = 0; i < 3; ++i )
1113 std::ostringstream ostr;
1114 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1115 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1116 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1118 ostr <<
" * [INFO] " <<
m_error;
1131 std::istringstream istr;
1135 if( istr.fail() || !istr.eof() )
1137 std::ostringstream ostr;
1138 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1139 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1140 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1142 ostr <<
" * [INFO] invalid character in space delimited triplet";
1150 aSFVec3f.x = tcol[0];
1151 aSFVec3f.y = tcol[1];
1152 aSFVec3f.z = tcol[2];
1188 std::ostringstream ostr;
1189 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1190 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1191 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1193 ostr <<
" * [INFO] " <<
m_error;
1201 std::ostringstream ostr;
1202 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1203 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1204 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1206 ostr <<
" * [INFO] could not check characters after the string";
1215 aMFString.push_back( lstr );
1225 std::ostringstream ostr;
1226 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1227 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1228 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1230 ostr <<
" * [INFO] " <<
m_error;
1238 std::ostringstream ostr;
1239 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1240 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1241 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1243 ostr <<
" * [INFO] could not check characters after the string";
1252 aMFString.push_back( lstr );
1256 std::ostringstream ostr;
1257 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1258 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1259 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1261 ostr <<
" * [INFO] problems encountered while reading list";
1307 std::ostringstream ostr;
1308 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1309 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1310 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1312 ostr <<
" * [INFO] " <<
m_error;
1320 std::ostringstream ostr;
1321 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1322 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1323 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1325 ostr <<
" * [INFO] could not check characters after the string";
1334 aMFColor.push_back( lcolor );
1350 std::ostringstream ostr;
1351 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1352 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1353 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1355 ostr <<
" * [INFO] " <<
m_error;
1361 aMFColor.push_back( lcolor );
1365 std::ostringstream ostr;
1366 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1367 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1368 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1370 ostr <<
" * [INFO] could not check characters after the string";
1419 std::ostringstream ostr;
1420 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1421 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1422 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1424 ostr <<
" * [INFO] " <<
m_error;
1432 std::ostringstream ostr;
1433 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1434 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1435 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1437 ostr <<
" * [INFO] could not check characters after the string";
1446 aMFFloat.push_back( temp );
1462 std::ostringstream ostr;
1463 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1464 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1465 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1467 ostr <<
" * [INFO] " <<
m_error;
1473 aMFFloat.push_back( temp );
1477 std::ostringstream ostr;
1478 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1479 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1480 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1482 ostr <<
" * [INFO] could not check characters after the string";
1530 std::ostringstream ostr;
1531 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1532 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1533 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1535 ostr <<
" * [INFO] " <<
m_error;
1543 std::ostringstream ostr;
1544 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1545 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1546 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1548 ostr <<
" * [INFO] could not check characters after the string";
1557 aMFInt32.push_back( temp );
1573 std::ostringstream ostr;
1574 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1575 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1576 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1578 ostr <<
" * [INFO] " <<
m_error;
1584 aMFInt32.push_back( temp );
1588 std::ostringstream ostr;
1589 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1590 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1591 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1593 ostr <<
" * [INFO] could not check characters after the string";
1614 aMFRotation.clear();
1642 std::ostringstream ostr;
1643 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1644 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1645 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1647 ostr <<
" * [INFO] " <<
m_error;
1655 std::ostringstream ostr;
1656 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1657 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1658 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1660 ostr <<
" * [INFO] could not check characters after the string";
1669 aMFRotation.push_back( lrot );
1685 std::ostringstream ostr;
1686 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1687 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1688 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1690 ostr <<
" * [INFO] " <<
m_error;
1696 aMFRotation.push_back( lrot );
1700 std::ostringstream ostr;
1701 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1702 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1703 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1705 ostr <<
" * [INFO] could not check characters after the string";
1754 std::ostringstream ostr;
1755 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1756 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1757 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1759 ostr <<
" * [INFO] " <<
m_error;
1767 std::ostringstream ostr;
1768 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1769 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1770 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1772 ostr <<
" * [INFO] could not check characters after the string";
1781 aMFVec2f.push_back( lvec2f );
1797 std::ostringstream ostr;
1798 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1799 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1800 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1802 ostr <<
" * [INFO] " <<
m_error;
1808 aMFVec2f.push_back( lvec2f );
1812 std::ostringstream ostr;
1813 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1814 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1815 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1817 ostr <<
" * [INFO] could not check characters after the string";
1865 std::ostringstream ostr;
1866 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1867 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1868 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1870 ostr <<
" * [INFO] " <<
m_error;
1878 std::ostringstream ostr;
1879 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1880 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1881 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1883 ostr <<
" * [INFO] could not check characters after the string";
1892 aMFVec3f.push_back( lvec3f );
1908 std::ostringstream ostr;
1909 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1910 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1911 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1913 ostr <<
" * [INFO] " <<
m_error;
1919 aMFVec3f.push_back( lvec3f );
1923 std::ostringstream ostr;
1924 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1925 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1926 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1928 ostr <<
" * [INFO] could not check characters after the string";
1980 std::ostringstream retv;
1983 retv <<
"no file loaded to provide file position information";
1999 return std::string(
m_file->GetSource().ToUTF8() );
2007 std::ostringstream ostr;
2008 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
2009 ostr <<
" * [BUG] no open file";
2018 std::ostringstream ostr;
2019 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
2020 ostr <<
" * [INFO] failed to read data from file\n";
An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
bool ReadGlob(std::string &aGlob)
bool ReadSFInt(int &aSFInt32)
bool ReadMFString(std::vector< std::string > &aMFString)
bool ReadString(std::string &aSFString)
bool ReadSFFloat(float &aSFFloat)
std::string GetFileName(void)
bool ReadSFColor(WRLVEC3F &aSFColor)
bool ReadSFVec2f(WRLVEC2F &aSFVec2f)
WRLVERSION GetVRMLType(void)
bool ReadMFInt(std::vector< int > &aMFInt32)
const char * GetParentDir(void)
bool ReadMFFloat(std::vector< float > &aMFFloat)
bool GetFilePosData(size_t &line, size_t &column)
std::string GetError(void)
bool ReadMFVec2f(std::vector< WRLVEC2F > &aMFVec2f)
bool ReadSFBool(bool &aSFBool)
bool ReadMFRotation(std::vector< WRLROTATION > &aMFRotation)
bool ReadMFVec3f(std::vector< WRLVEC3F > &aMFVec3f)
bool ReadName(std::string &aName)
std::string GetFilePosition() const
bool ReadMFColor(std::vector< WRLVEC3F > &aMFColor)
bool ReadSFRotation(WRLROTATION &aSFRotation)
WRLPROC(LINE_READER *aLineReader)
bool ReadSFVec3f(WRLVEC3F &aSFVec3f)
const wxChar *const traceVrmlPlugin
Flag to enable VRML plugin trace output.
defines the basic input class for VRML
#define FN_NORMALIZE_FLAGS
Default flags to pass to wxFileName::Normalize().