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;
682 aSFString.append( 1,
'\n' );
686 std::ostringstream ostr;
687 ostr <<
"invalid VRML1 file at lines " << ifline <<
"--" <<
m_fileline;
688 ostr <<
"; could not find end of string\n";
699 aSFString.append( 1,
'\n' );
712 aSFString.append( 1,
'"' );
743 if( !tmp.compare(
"0" ) )
747 else if( !tmp.compare(
"1" ) )
751 else if( !tmp.compare(
"TRUE" ) )
755 else if( !tmp.compare(
"FALSE" ) )
761 std::ostringstream ostr;
762 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
763 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
764 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
766 ostr <<
" * [INFO] expected one of 0, 1, TRUE, FALSE but got '" << tmp <<
"'\n";
790 if( aSFColor.x < 0.0 || aSFColor.x > 1.0 || aSFColor.y < 0.0 || aSFColor.y > 1.0
791 || aSFColor.z < 0.0 || aSFColor.z > 1.0 )
793 std::ostringstream ostr;
794 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
795 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
796 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
798 ostr <<
" * [INFO] invalid RGB value in color triplet";
837 std::ostringstream ostr;
838 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
839 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
840 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
842 ostr <<
" * [INFO] " <<
m_error;
848 std::istringstream istr;
852 if( istr.fail() || !istr.eof() )
854 std::ostringstream ostr;
855 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
856 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
857 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
859 ostr <<
" * [INFO] invalid character in SFFloat";
897 std::ostringstream ostr;
898 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
899 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
900 ostr <<
" * [INFO] line " << fileline<<
", char " << linepos <<
" -- ";
902 ostr <<
" * [INFO] " <<
m_error;
908 if( tmp.find(
"0x" ) != std::string::npos )
912 std::stringstream sstr;
913 sstr << std::hex << tmp;
918 std::istringstream istr;
922 if( istr.fail() || !istr.eof() )
924 std::ostringstream ostr;
925 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
926 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
927 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
929 ostr <<
" * [INFO] invalid character in SFInt";
970 for(
int i = 0; i < 4; ++i )
974 std::ostringstream ostr;
975 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
976 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
977 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
979 ostr <<
" * [INFO] " <<
m_error;
985 std::istringstream istr;
989 if( istr.fail() || !istr.eof() )
991 std::ostringstream ostr;
992 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
993 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
994 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
996 ostr <<
" * [INFO] invalid character in space delimited quartet";
1004 aSFRotation.x = trot[0];
1005 aSFRotation.y = trot[1];
1006 aSFRotation.z = trot[2];
1007 aSFRotation.w = trot[3];
1043 for(
int i = 0; i < 2; ++i )
1047 std::ostringstream ostr;
1048 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1049 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1050 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1052 ostr <<
" * [INFO] " <<
m_error;
1058 std::istringstream istr;
1062 if( istr.fail() || !istr.eof() )
1064 std::ostringstream ostr;
1065 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1066 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1067 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1069 ostr <<
" * [INFO] invalid character in space delimited pair";
1077 aSFVec2f.x = tcol[0];
1078 aSFVec2f.y = tcol[1];
1115 for(
int i = 0; i < 3; ++i )
1119 std::ostringstream ostr;
1120 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1121 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1122 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1124 ostr <<
" * [INFO] " <<
m_error;
1137 std::istringstream istr;
1141 if( istr.fail() || !istr.eof() )
1143 std::ostringstream ostr;
1144 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1145 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1146 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1148 ostr <<
" * [INFO] invalid character in space delimited triplet";
1156 aSFVec3f.x = tcol[0];
1157 aSFVec3f.y = tcol[1];
1158 aSFVec3f.z = tcol[2];
1194 std::ostringstream ostr;
1195 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1196 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1197 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1199 ostr <<
" * [INFO] " <<
m_error;
1207 std::ostringstream ostr;
1208 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1209 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1210 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1212 ostr <<
" * [INFO] could not check characters after the string";
1221 aMFString.push_back( lstr );
1231 std::ostringstream ostr;
1232 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1233 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1234 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1236 ostr <<
" * [INFO] " <<
m_error;
1244 std::ostringstream ostr;
1245 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1246 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1247 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1249 ostr <<
" * [INFO] could not check characters after the string";
1258 aMFString.push_back( lstr );
1262 std::ostringstream ostr;
1263 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1264 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1265 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1267 ostr <<
" * [INFO] problems encountered while reading list";
1313 std::ostringstream ostr;
1314 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1315 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1316 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1318 ostr <<
" * [INFO] " <<
m_error;
1326 std::ostringstream ostr;
1327 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1328 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1329 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1331 ostr <<
" * [INFO] could not check characters after the string";
1340 aMFColor.push_back( lcolor );
1356 std::ostringstream ostr;
1357 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1358 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1359 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1361 ostr <<
" * [INFO] " <<
m_error;
1367 aMFColor.push_back( lcolor );
1371 std::ostringstream ostr;
1372 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1373 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1374 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1376 ostr <<
" * [INFO] could not check characters after the string";
1425 std::ostringstream ostr;
1426 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1427 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1428 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1430 ostr <<
" * [INFO] " <<
m_error;
1438 std::ostringstream ostr;
1439 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1440 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1441 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1443 ostr <<
" * [INFO] could not check characters after the string";
1452 aMFFloat.push_back( temp );
1468 std::ostringstream ostr;
1469 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1470 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1471 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1473 ostr <<
" * [INFO] " <<
m_error;
1479 aMFFloat.push_back( temp );
1483 std::ostringstream ostr;
1484 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1485 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1486 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1488 ostr <<
" * [INFO] could not check characters after the string";
1536 std::ostringstream ostr;
1537 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1538 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1539 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1541 ostr <<
" * [INFO] " <<
m_error;
1549 std::ostringstream ostr;
1550 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1551 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1552 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1554 ostr <<
" * [INFO] could not check characters after the string";
1563 aMFInt32.push_back( temp );
1579 std::ostringstream ostr;
1580 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1581 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1582 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1584 ostr <<
" * [INFO] " <<
m_error;
1590 aMFInt32.push_back( temp );
1594 std::ostringstream ostr;
1595 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1596 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1597 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1599 ostr <<
" * [INFO] could not check characters after the string";
1620 aMFRotation.clear();
1648 std::ostringstream ostr;
1649 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1650 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1651 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1653 ostr <<
" * [INFO] " <<
m_error;
1661 std::ostringstream ostr;
1662 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1663 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1664 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1666 ostr <<
" * [INFO] could not check characters after the string";
1675 aMFRotation.push_back( lrot );
1691 std::ostringstream ostr;
1692 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1693 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1694 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1696 ostr <<
" * [INFO] " <<
m_error;
1702 aMFRotation.push_back( lrot );
1706 std::ostringstream ostr;
1707 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1708 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1709 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1711 ostr <<
" * [INFO] could not check characters after the string";
1760 std::ostringstream ostr;
1761 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1762 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1763 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1765 ostr <<
" * [INFO] " <<
m_error;
1773 std::ostringstream ostr;
1774 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1775 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1776 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1778 ostr <<
" * [INFO] could not check characters after the string";
1787 aMFVec2f.push_back( lvec2f );
1803 std::ostringstream ostr;
1804 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1805 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1806 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1808 ostr <<
" * [INFO] " <<
m_error;
1814 aMFVec2f.push_back( lvec2f );
1818 std::ostringstream ostr;
1819 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1820 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1821 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1823 ostr <<
" * [INFO] could not check characters after the string";
1871 std::ostringstream ostr;
1872 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1873 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1874 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1876 ostr <<
" * [INFO] " <<
m_error;
1884 std::ostringstream ostr;
1885 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1886 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1887 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1889 ostr <<
" * [INFO] could not check characters after the string";
1898 aMFVec3f.push_back( lvec3f );
1914 std::ostringstream ostr;
1915 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1916 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1917 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1919 ostr <<
" * [INFO] " <<
m_error;
1925 aMFVec3f.push_back( lvec3f );
1929 std::ostringstream ostr;
1930 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
1931 ostr <<
" * [INFO] failed on file '" <<
m_filename <<
"'\n";
1932 ostr <<
" * [INFO] line " << fileline <<
", char " << linepos <<
" -- ";
1934 ostr <<
" * [INFO] could not check characters after the string";
1986 std::ostringstream retv;
1989 retv <<
"no file loaded to provide file position information";
2005 return std::string(
m_file->Source().ToUTF8() );
2013 std::ostringstream ostr;
2014 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
2015 ostr <<
" * [BUG] no open file";
2024 std::ostringstream ostr;
2025 ostr << __FILE__ <<
":" << __FUNCTION__ <<
":" << __LINE__ <<
"\n";
2026 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().