35 char* cp = m_file->ReadLine(); \
48 m_fileline = m_file->LineNumber(); \
50 catch( const MODEL_IMPORT_CANCELED& ) \
56 m_error = " * [INFO] input line too long"; \
71 if(
nullptr == aLineReader )
78 wxString tname =
m_file->Source();
80 wxFileName fn( tname );
93 if(
m_buf.compare( 0, 16,
"#VRML V1.0 ascii" ) == 0 )
106 if(
m_buf.compare( 0, 15,
"#VRML V2.0 utf8" ) == 0 )
132 m_error =
"not a valid VRML file: '";
169 while( !
m_buf.empty() && ( *
m_buf.rbegin() ==
'\r' || *
m_buf.rbegin() ==
'\n' ) )
174 std::string::iterator sS =
m_buf.begin();
175 std::string::iterator eS =
m_buf.end();
179 if( ( ( *sS ) & 0x80 ) )
181 m_error =
" non-ASCII character sequence in VRML1 file";
269 size_t ssize =
m_buf.size();
313 size_t ssize =
m_buf.size();
328 std::ostringstream ostr;
329 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
330 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
332 ostr <<
" -- invalid name";
341 std::ostringstream ostr;
342 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
343 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
345 ostr <<
" -- invalid character in name";
353 std::ostringstream ostr;
354 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
355 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
357 ostr <<
" -- name must not start with a digit";
380 std::ostringstream ostr;
381 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
382 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
383 ostr <<
" * [INFO] " <<
m_error;
391 std::ostringstream ostr;
392 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
393 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
394 ostr <<
" * [INFO] expecting character '{' at line " <<
m_fileline;
414 std::ostringstream ostr;
415 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
416 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
417 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
419 ostr <<
" * [INFO] " <<
m_error;
462 std::ostringstream ostr;
463 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
464 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
465 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
467 ostr <<
" * [INFO] " <<
m_error;
477 std::ostringstream ostr;
478 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
479 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
480 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
482 ostr <<
" * [INFO] " <<
m_error;
503 std::ostringstream ostr;
504 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
505 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
506 ostr <<
" * [INFO] " <<
m_error;
514 std::ostringstream ostr;
515 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
516 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
517 ostr <<
" * [INFO] expecting character '[' at line " <<
m_fileline;
535 std::ostringstream ostr;
536 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
537 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
538 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
540 ostr <<
" * [INFO] " <<
m_error;
583 std::ostringstream ostr;
584 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
585 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
586 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
588 ostr <<
" * [INFO] " <<
m_error;
598 std::ostringstream ostr;
599 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
600 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
601 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
603 ostr <<
" * [INFO] " <<
m_error;
633 std::ostringstream ostr;
634 ostr <<
"invalid VRML file; expecting string at line " << ifline <<
635 " but found nothing";
650 m_error =
"invalid VRML2 file (string not quoted)";
660 std::ostringstream ostr;
661 ostr <<
"invalid VRML1 file at lines " << ifline <<
"--" <<
m_fileline;
684 aSFString.append( 1,
'\n' );
688 std::ostringstream ostr;
689 ostr <<
"invalid VRML1 file at lines " << ifline <<
"--" <<
m_fileline;
690 ostr <<
"; could not find end of string\n";
695 }
while(
m_buf.empty() );
702 aSFString.append( 1,
'\n' );
715 aSFString.append( 1,
'"' );
746 if( !tmp.compare(
"0" ) )
750 else if( !tmp.compare(
"1" ) )
754 else if( !tmp.compare(
"TRUE" ) )
758 else if( !tmp.compare(
"FALSE" ) )
764 std::ostringstream ostr;
765 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
766 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
767 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
769 ostr <<
" * [INFO] expected one of 0, 1, TRUE, FALSE but got '" << tmp <<
"'\n";
793 if( aSFColor.x < 0.0 || aSFColor.x > 1.0 || aSFColor.y < 0.0 || aSFColor.y > 1.0
794 || aSFColor.z < 0.0 || aSFColor.z > 1.0 )
796 std::ostringstream ostr;
797 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
798 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
799 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
801 ostr <<
" * [INFO] invalid RGB value in color triplet";
840 std::ostringstream ostr;
841 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
842 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
843 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
845 ostr <<
" * [INFO] " <<
m_error;
851 std::istringstream istr;
855 if( istr.fail() || !istr.eof() )
857 std::ostringstream ostr;
858 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
859 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
860 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
862 ostr <<
" * [INFO] invalid character in SFFloat";
900 std::ostringstream ostr;
901 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
902 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
903 ostr <<
" * [INFO] line " << fileline<<
", char " << linepos <<
" -- ";
905 ostr <<
" * [INFO] " <<
m_error;
911 if( tmp.find(
"0x" ) != std::string::npos )
915 std::stringstream sstr;
916 sstr << std::hex << tmp;
921 std::istringstream istr;
925 if( istr.fail() || !istr.eof() )
927 std::ostringstream ostr;
928 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
929 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
930 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
932 ostr <<
" * [INFO] invalid character in SFInt";
973 for(
int i = 0; i < 4; ++i )
977 std::ostringstream ostr;
978 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
979 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
980 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
982 ostr <<
" * [INFO] " <<
m_error;
988 std::istringstream istr;
992 if( istr.fail() || !istr.eof() )
994 std::ostringstream ostr;
995 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
996 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
997 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
999 ostr <<
" * [INFO] invalid character in space delimited quartet";
1007 aSFRotation.x = trot[0];
1008 aSFRotation.y = trot[1];
1009 aSFRotation.z = trot[2];
1010 aSFRotation.w = trot[3];
1046 for(
int i = 0; i < 2; ++i )
1050 std::ostringstream ostr;
1051 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1052 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1053 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1055 ostr <<
" * [INFO] " <<
m_error;
1061 std::istringstream istr;
1065 if( istr.fail() || !istr.eof() )
1067 std::ostringstream ostr;
1068 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1069 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1070 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1072 ostr <<
" * [INFO] invalid character in space delimited pair";
1080 aSFVec2f.x = tcol[0];
1081 aSFVec2f.y = tcol[1];
1118 for(
int i = 0; i < 3; ++i )
1122 std::ostringstream ostr;
1123 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1124 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1125 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1127 ostr <<
" * [INFO] " <<
m_error;
1140 std::istringstream istr;
1144 if( istr.fail() || !istr.eof() )
1146 std::ostringstream ostr;
1147 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1148 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1149 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1151 ostr <<
" * [INFO] invalid character in space delimited triplet";
1159 aSFVec3f.x = tcol[0];
1160 aSFVec3f.y = tcol[1];
1161 aSFVec3f.z = tcol[2];
1197 std::ostringstream ostr;
1198 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1199 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1200 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1202 ostr <<
" * [INFO] " <<
m_error;
1210 std::ostringstream ostr;
1211 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1212 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1213 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1215 ostr <<
" * [INFO] could not check characters after the string";
1224 aMFString.push_back( lstr );
1234 std::ostringstream ostr;
1235 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1236 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1237 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1239 ostr <<
" * [INFO] " <<
m_error;
1247 std::ostringstream ostr;
1248 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1249 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1250 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1252 ostr <<
" * [INFO] could not check characters after the string";
1261 aMFString.push_back( lstr );
1265 std::ostringstream ostr;
1266 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1267 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1268 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1270 ostr <<
" * [INFO] problems encountered while reading list";
1316 std::ostringstream ostr;
1317 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1318 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1319 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1321 ostr <<
" * [INFO] " <<
m_error;
1329 std::ostringstream ostr;
1330 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1331 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1332 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1334 ostr <<
" * [INFO] could not check characters after the string";
1343 aMFColor.push_back( lcolor );
1359 std::ostringstream ostr;
1360 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1361 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1362 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1364 ostr <<
" * [INFO] " <<
m_error;
1370 aMFColor.push_back( lcolor );
1374 std::ostringstream ostr;
1375 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1376 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1377 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1379 ostr <<
" * [INFO] could not check characters after the string";
1428 std::ostringstream ostr;
1429 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1430 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1431 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1433 ostr <<
" * [INFO] " <<
m_error;
1441 std::ostringstream ostr;
1442 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1443 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1444 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1446 ostr <<
" * [INFO] could not check characters after the string";
1455 aMFFloat.push_back( temp );
1471 std::ostringstream ostr;
1472 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1473 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1474 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1476 ostr <<
" * [INFO] " <<
m_error;
1482 aMFFloat.push_back( temp );
1486 std::ostringstream ostr;
1487 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1488 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1489 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1491 ostr <<
" * [INFO] could not check characters after the string";
1539 std::ostringstream ostr;
1540 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1541 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1542 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1544 ostr <<
" * [INFO] " <<
m_error;
1552 std::ostringstream ostr;
1553 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1554 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1555 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1557 ostr <<
" * [INFO] could not check characters after the string";
1566 aMFInt32.push_back( temp );
1582 std::ostringstream ostr;
1583 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1584 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1585 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1587 ostr <<
" * [INFO] " <<
m_error;
1593 aMFInt32.push_back( temp );
1597 std::ostringstream ostr;
1598 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1599 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1600 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1602 ostr <<
" * [INFO] could not check characters after the string";
1623 aMFRotation.clear();
1651 std::ostringstream ostr;
1652 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1653 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1654 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1656 ostr <<
" * [INFO] " <<
m_error;
1664 std::ostringstream ostr;
1665 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1666 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1667 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1669 ostr <<
" * [INFO] could not check characters after the string";
1678 aMFRotation.push_back( lrot );
1694 std::ostringstream ostr;
1695 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1696 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1697 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1699 ostr <<
" * [INFO] " <<
m_error;
1705 aMFRotation.push_back( lrot );
1709 std::ostringstream ostr;
1710 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1711 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1712 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1714 ostr <<
" * [INFO] could not check characters after the string";
1763 std::ostringstream ostr;
1764 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1765 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1766 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1768 ostr <<
" * [INFO] " <<
m_error;
1776 std::ostringstream ostr;
1777 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1778 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1779 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1781 ostr <<
" * [INFO] could not check characters after the string";
1790 aMFVec2f.push_back( lvec2f );
1806 std::ostringstream ostr;
1807 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1808 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1809 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1811 ostr <<
" * [INFO] " <<
m_error;
1817 aMFVec2f.push_back( lvec2f );
1821 std::ostringstream ostr;
1822 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1823 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1824 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1826 ostr <<
" * [INFO] could not check characters after the string";
1874 std::ostringstream ostr;
1875 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1876 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1877 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1879 ostr <<
" * [INFO] " <<
m_error;
1887 std::ostringstream ostr;
1888 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1889 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1890 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1892 ostr <<
" * [INFO] could not check characters after the string";
1901 aMFVec3f.push_back( lvec3f );
1917 std::ostringstream ostr;
1918 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1919 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1920 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1922 ostr <<
" * [INFO] " <<
m_error;
1928 aMFVec3f.push_back( lvec3f );
1932 std::ostringstream ostr;
1933 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1934 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1935 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1937 ostr <<
" * [INFO] could not check characters after the string";
1989 std::ostringstream retv;
1992 retv <<
"no file loaded to provide file position information";
2008 return std::string(
m_file->Source().ToUTF8() );
2016 std::ostringstream ostr;
2017 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
2018 ostr <<
" * [BUG] no open file";
2027 std::ostringstream ostr;
2028 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
2029 ostr <<
" * [INFO] failed to read data from file\n";
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)
WRLPROC(VRML_LINE_READER *aLineReader)
bool ReadSFColor(WRLVEC3F &aSFColor)
bool ReadSFVec2f(WRLVEC2F &aSFVec2f)
WRLVERSION GetVRMLType(void)
bool ReadMFInt(std::vector< int > &aMFInt32)
VRML_LINE_READER * m_file
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)
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().