|
|
|
@ -39,7 +39,7 @@ bool Get2DPositionAndRotation( SEXPR::SEXPR* data, DOUBLET& aPosition, double& a |
|
|
|
if( nchild < 3 ) |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << data->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -47,7 +47,8 @@ bool Get2DPositionAndRotation( SEXPR::SEXPR* data, DOUBLET& aPosition, double& a |
|
|
|
if( data->GetChild( 0 )->GetSymbol() != "at" ) |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << "* SEXPR item is not a position string"; |
|
|
|
ostr << "* SEXPR item is not a position string (line "; |
|
|
|
ostr << data->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -62,7 +63,7 @@ bool Get2DPositionAndRotation( SEXPR::SEXPR* data, DOUBLET& aPosition, double& a |
|
|
|
else |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << child->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -77,7 +78,7 @@ bool Get2DPositionAndRotation( SEXPR::SEXPR* data, DOUBLET& aPosition, double& a |
|
|
|
else |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << child->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -98,7 +99,7 @@ bool Get2DPositionAndRotation( SEXPR::SEXPR* data, DOUBLET& aPosition, double& a |
|
|
|
else |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << child->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -123,7 +124,7 @@ bool Get2DCoordinate( SEXPR::SEXPR* data, DOUBLET& aCoordinate ) |
|
|
|
if( nchild < 3 ) |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << data->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -138,7 +139,7 @@ bool Get2DCoordinate( SEXPR::SEXPR* data, DOUBLET& aCoordinate ) |
|
|
|
else |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << child->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -153,7 +154,7 @@ bool Get2DCoordinate( SEXPR::SEXPR* data, DOUBLET& aCoordinate ) |
|
|
|
else |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << child->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -173,7 +174,7 @@ bool Get3DCoordinate( SEXPR::SEXPR* data, TRIPLET& aCoordinate ) |
|
|
|
if( nchild < 4 ) |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << data->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -192,7 +193,7 @@ bool Get3DCoordinate( SEXPR::SEXPR* data, TRIPLET& aCoordinate ) |
|
|
|
else |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_position; |
|
|
|
ostr << bad_position << " (line " << child->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
@ -213,7 +214,7 @@ bool GetXYZRotation( SEXPR::SEXPR* data, TRIPLET& aRotation ) |
|
|
|
if( !Get3DCoordinate( data, aRotation ) ) |
|
|
|
{ |
|
|
|
std::ostringstream ostr; |
|
|
|
ostr << bad_rotation; |
|
|
|
ostr << bad_rotation << " (line " << data->GetLineNumber() << ")"; |
|
|
|
wxLogMessage( "%s\n", ostr.str().c_str() ); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|