EgtInterface 1.6c8 :
- gestione inserimento in testa ad un gruppo - gestione Machinings.
This commit is contained in:
@@ -78,6 +78,37 @@ StringToSep( const string& sSep)
|
||||
return SEP_STD ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const char*
|
||||
InsToString( int nIns)
|
||||
{
|
||||
switch ( nIns) {
|
||||
default :
|
||||
case GDB_LAST_SON : return "'LAST_SON'" ;
|
||||
case GDB_FIRST_SON : return "'FIRST_SON'" ;
|
||||
case GDB_BEFORE : return "'BEFORE'" ;
|
||||
case GDB_AFTER : return "'AFTER'" ;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
int
|
||||
StringToIns( const string& sIns)
|
||||
{
|
||||
string sTmp = sIns ;
|
||||
ToUpper( sTmp) ;
|
||||
if ( sTmp == "LAST_SON")
|
||||
return GDB_LAST_SON ;
|
||||
else if ( sTmp == "FIRST_SON")
|
||||
return GDB_FIRST_SON ;
|
||||
else if ( sTmp == "BEFORE")
|
||||
return GDB_BEFORE ;
|
||||
else if ( sTmp == "AFTER")
|
||||
return GDB_AFTER ;
|
||||
// default
|
||||
return GDB_LAST_SON ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const char*
|
||||
RefTypeToString( int nRefType)
|
||||
|
||||
Reference in New Issue
Block a user