EgtInterface 1.6c8 :

- gestione inserimento in testa ad un gruppo
- gestione Machinings.
This commit is contained in:
Dario Sassi
2015-03-25 14:34:53 +00:00
parent a7a5ed461c
commit 18bf9c19e1
15 changed files with 201 additions and 34 deletions
+31
View File
@@ -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)