@@ -1323,38 +1323,6 @@ STEPaggregate & RealAggregate::ShallowCopy( const STEPaggregate & a ) {
13231323 return *this ;
13241324}
13251325
1326- // /////////////////////////////////////////////////////////////////////////////
1327- // IntAggregate
1328- // /////////////////////////////////////////////////////////////////////////////
1329-
1330- IntAggregate::IntAggregate () {
1331- }
1332-
1333- IntAggregate::~IntAggregate () {
1334- }
1335-
1336- SingleLinkNode * IntAggregate::NewNode () {
1337- return new IntNode ();
1338- }
1339-
1340- // / COPY
1341- STEPaggregate & IntAggregate::ShallowCopy ( const STEPaggregate & a ) {
1342- const IntNode * tmp = ( const IntNode * ) a.GetHead ();
1343- IntNode * to;
1344-
1345- while ( tmp ) {
1346- to = ( IntNode * ) NewNode ();
1347- to -> value = tmp -> value;
1348- AddNode ( to );
1349- tmp = ( const IntNode * ) tmp -> NextNode ();
1350- }
1351- if ( head ) {
1352- _null = 0 ;
1353- } else {
1354- _null = 1 ;
1355- }
1356- return *this ;
1357- }
13581326
13591327// /////////////////////////////////////////////////////////////////////////////
13601328// RealNode
@@ -1435,83 +1403,3 @@ void RealNode::STEPwrite( ostream & out ) {
14351403 std::string s;
14361404 out << STEPwrite ( s );
14371405}
1438-
1439- // /////////////////////////////////////////////////////////////////////////////
1440- // IntNode
1441- // /////////////////////////////////////////////////////////////////////////////
1442-
1443- IntNode::IntNode () {
1444- value = S_INT_NULL;
1445- }
1446-
1447- IntNode::IntNode ( SDAI_Integer v ) {
1448- value = v;
1449- }
1450-
1451- IntNode::~IntNode () {
1452- }
1453-
1454- SingleLinkNode * IntNode::NewNode () {
1455- return new IntNode ();
1456- }
1457-
1458- Severity IntNode::StrToVal ( const char * s, ErrorDescriptor * err ) {
1459- if ( ReadInteger ( value, s, err, " ,)" ) ) { // returns true if value is assigned
1460- _null = 0 ;
1461- } else {
1462- set_null ();
1463- value = S_INT_NULL;
1464- }
1465- return err->severity ();
1466- }
1467-
1468- Severity IntNode::StrToVal ( istream & in, ErrorDescriptor * err ) {
1469- if ( ReadInteger ( value, in, err, " ,)" ) ) { // returns true if value is assigned
1470- _null = 0 ;
1471- } else {
1472- set_null ();
1473- value = S_INT_NULL;
1474- }
1475- return err->severity ();
1476- }
1477-
1478- Severity IntNode::STEPread ( const char * s, ErrorDescriptor * err ) {
1479- if ( ReadInteger ( value, s, err, " ,)" ) ) { // returns true if value is assigned
1480- _null = 0 ;
1481- } else {
1482- set_null ();
1483- value = S_INT_NULL;
1484- }
1485- return err->severity ();
1486- }
1487-
1488- Severity IntNode::STEPread ( istream & in, ErrorDescriptor * err ) {
1489- if ( ReadInteger ( value, in, err, " ,)" ) ) { // returns true if value is assigned
1490- _null = 0 ;
1491- } else {
1492- set_null ();
1493- value = S_INT_NULL;
1494- }
1495- return err->severity ();
1496- }
1497-
1498- const char * IntNode::asStr ( std::string & s ) {
1499- STEPwrite ( s );
1500- return const_cast <char *>( s.c_str () );
1501- }
1502-
1503- const char * IntNode::STEPwrite ( std::string & s, const char * ) {
1504- char tmp[BUFSIZ];
1505- if ( value != S_INT_NULL ) {
1506- sprintf ( tmp, " %ld" , value );
1507- s = tmp;
1508- } else {
1509- s.clear ();
1510- }
1511- return const_cast <char *>( s.c_str () );
1512- }
1513-
1514- void IntNode::STEPwrite ( ostream & out ) {
1515- std::string s;
1516- out << STEPwrite ( s );
1517- }
0 commit comments