if ( !astr -> IsEmpty () ) {
- OSD_Path dPath ( OutputDir () -> Name () -> ToCString () );
+// OSD_Path dPath ( OutputDir () -> Name () -> ToCString () );
+ TCollection_AsciiString atstr = OutputDir () -> Name () -> ToCString () ;
+ OSD_Path dPath ( atstr );
dPath.SetName ( Compilable () -> Path () -> BaseName () -> ToCString () );
dPath.SetExtension ( ".d" );
//function : Path
//purpose :
//=======================================================================
-const Handle(WOKUtils_Path)& WOKBuilder_Entity::Path() const
+inline const Handle(WOKUtils_Path)& WOKBuilder_Entity::Path() const
{
return mypath;
}
objstream.close();
Params().Set("%LD_ObjList", objlistpath->Name()->ToCString());
-#if defined( LIN ) || defined( SOLARIS )
+// CheckUndef
+//#if defined( LIN ) || defined( SOLARIS ) || defined( IRIX ) || defined( HPUX )
+#ifndef WNT
Handle( TCollection_HAsciiString ) args[ 10 ];
#else
Handle( TCollection_HAsciiString ) args[ 4 ];
Shell () -> Send ( args[ 0 ] );
Shell () -> Send ( args[ 1 ] );
Shell () -> Send ( args[ 2 ] );
-#if !defined( LIN ) && !defined( SOLARIS )
+//#if !defined( LIN ) && !defined( SOLARIS ) && !defined( IRIX ) && !defined( HPUX )
+#ifdef WNT
Shell () -> Execute ( args[ 3 ] );
} else {
} // end if
Handle( TCollection_HAsciiString ) target = Params ().Value ( "%Target", 1 );
-#if defined( LIN )
+# if defined( LIN )
static Handle( TCollection_HAsciiString ) skipStr =
new TCollection_HAsciiString ( "/usr/bin/ld: warning: cannot find entry symbol _start" );
-#elif defined ( SOLARIS )
+# elif defined ( SOLARIS )
static Handle( TCollection_HAsciiString ) skipStr =
new TCollection_HAsciiString ( "ld: fatal: Symbol referencing errors." );
static Handle( TCollection_HAsciiString ) skipStr1 =
new TCollection_HAsciiString ( "/crt1.o" );
-#endif // LIN || SOLARIS
+# elif defined ( IRIX )
+ static Handle( TCollection_HAsciiString ) skipStr =
+ new TCollection_HAsciiString ( "ld: fatal: Symbol referencing errors." );
+# elif defined ( HPUX )
+ static Handle( TCollection_HAsciiString ) skipStr =
+ new TCollection_HAsciiString ( "ld: fatal: Symbol referencing errors." );
+# endif // LIN || SOLARIS
Handle( TCollection_HAsciiString ) uType = Params ().Value ( "%UnitType", 0 );
if ( !uType.IsNull () &&
f.Build ( OSD_WriteOnly, OSD_Protection () );
if ( !f.Failed () ) {
-#if !defined( LIN ) && !defined( SOLARIS )
+//#if !defined( LIN ) && !defined( SOLARIS ) && !defined( IRIX ) && !defined( HPUX )
+#ifdef WNT
for ( i = 0; i < 4; ++i ) {
#else
// for ( i = 0; i < 11; ++i ) { JR :
f.Write ( args[ i ] -> String (), args[ i ] -> Length () );
} // end for
-#if !defined( LIN ) && !defined( SOLARIS )
+//#if !defined( LIN ) && !defined( SOLARIS ) && !defined( IRIX ) && !defined( HPUX )
+#ifdef WNT
f.Write ( "\n", 1 );
#endif // LIN
f.Close ();
ErrorMsg.DontPrintHeader();
for(Standard_Integer i=1; i<= errmsgs->Length(); i++)
{
-#if defined( LIN ) || defined( SOLARIS )
+//#if defined( LIN ) || defined( SOLARIS ) || defined( IRIX ) || defined( HPUX )
+#ifndef WNT
if ( errmsgs -> Value ( i ) -> Search ( skipStr ) == 1 ) continue;
#endif // LIN || SOLARIS
#ifdef SOLARIS
#endif // SOLARIS
for(Standard_Integer i=1; i<= errmsgs->Length(); i++)
{
-#if defined( LIN ) || defined( SOLARIS )
+//#if defined( LIN ) || defined( SOLARIS ) || defined( IRIX ) || defined( HPUX )
+#ifndef WNT
if ( errmsgs -> Value ( i ) -> Search ( skipStr ) == 1 ) continue;
#endif // LIN || SOLARIS
#ifdef SOLARIS
//function : Entity
//purpose :
//=======================================================================
-const Handle(WOKBuilder_MSEntity)& WOKBuilder_MSAction::Entity() const
+inline const Handle(WOKBuilder_MSEntity)& WOKBuilder_MSAction::Entity() const
{
return myent;
}
//function : Type
//purpose :
//=======================================================================
-WOKBuilder_MSActionType WOKBuilder_MSAction::Type() const
+inline WOKBuilder_MSActionType WOKBuilder_MSAction::Type() const
{
return mytype;
}
//function : Date
//purpose :
//=======================================================================
-WOKUtils_TimeStat WOKBuilder_MSAction::Date() const
+inline WOKUtils_TimeStat WOKBuilder_MSAction::Date() const
{
return mydate;
}
//function : WOKBuilder_MSActionID
//purpose :
//=======================================================================
- WOKBuilder_MSActionID::WOKBuilder_MSActionID(const Handle(TCollection_HAsciiString)& aname,
+ inline WOKBuilder_MSActionID::WOKBuilder_MSActionID(const Handle(TCollection_HAsciiString)& aname,
const WOKBuilder_MSActionType atype)
: myname(aname), mytype(atype)
{
//function : Name
//purpose :
//=======================================================================
-const Handle(TCollection_HAsciiString)& WOKBuilder_MSActionID::Name() const
+inline const Handle(TCollection_HAsciiString)& WOKBuilder_MSActionID::Name() const
{
return myname;
}
//function : Type
//purpose :
//=======================================================================
-WOKBuilder_MSActionType WOKBuilder_MSActionID::Type() const
+inline WOKBuilder_MSActionType WOKBuilder_MSActionID::Type() const
{
return mytype;
}
// <jga@cobrax.paris1.matra-dtv.fr>
-const Handle(TCollection_HAsciiString)& WOKBuilder_MSEntity::Name() const
+inline const Handle(TCollection_HAsciiString)& WOKBuilder_MSEntity::Name() const
{
return myname;
}
-const Handle(WOKBuilder_Specification)& WOKBuilder_MSEntity::File() const
+inline const Handle(WOKBuilder_Specification)& WOKBuilder_MSEntity::File() const
{
return myfile;
}
if(libpath.IsNull())
{
ErrorMsg << "WOKBuilder_MSExtractor::Load"
- << "Could not find file : " << myshared << endm;
+ << "WOKBuilder_MSExtractor::Load Could not find file : " << myshared << endm;
}
}
searchlist : HSequenceOfHAsciiString from TColStd)
returns mutable MSHeaderExtractor from WOKBuilder;
+ Create (
+ aname : HAsciiString from TCollection;
+ ashared : HAsciiString from TCollection;
+ searchlist : HSequenceOfHAsciiString from TColStd
+ ) returns mutable MSHeaderExtractor from WOKBuilder;
+
Create(aname : HAsciiString from TCollection; params : Param from WOKUtils)
returns mutable MSHeaderExtractor from WOKBuilder;
#include <WOKBuilder_MSHeaderExtractor.ixx>
+WOKBuilder_MSHeaderExtractor :: WOKBuilder_MSHeaderExtractor (
+ const Handle( TCollection_HAsciiString )& aname,
+ const Handle( TCollection_HAsciiString )& ashared,
+ const Handle( TColStd_HSequenceOfHAsciiString )& searchlist
+ ) : WOKBuilder_MSExtractor ( aname, ashared, searchlist ) {}
//=======================================================================
//function : WOKBuilder_MSHeaderExtractor
//function : GetTypeDepList
//purpose :
//=======================================================================
-Handle(TColStd_HSequenceOfHAsciiString) WOKBuilder_MSHeaderExtractor::GetTypeDepList(const Handle(TCollection_HAsciiString)& aname) const
-{
- Handle(TColStd_HSequenceOfHAsciiString) result = new TColStd_HSequenceOfHAsciiString;
- Handle(TColStd_HSequenceOfHAsciiString) aList = new TColStd_HSequenceOfHAsciiString;
- Handle(TCollection_HAsciiString) astr;
- Handle(MS_MetaSchema) ameta = MSchema()->MetaSchema();
- Handle(MS_Type) atype;
- Standard_Integer i;
+Handle( TColStd_HSequenceOfHAsciiString )
+ WOKBuilder_MSHeaderExtractor :: GetTypeDepList (
+ const Handle( TCollection_HAsciiString )& aname
+ ) const {
- result->Append(aname);
+ Standard_Integer i;
+ Handle( MS_Type ) atype;
+ Handle( TCollection_HAsciiString ) astr;
+ Handle( TCollection_HAsciiString ) aName = aname -> Token ( "@" );
+ Handle( TColStd_HSequenceOfHAsciiString ) result = new TColStd_HSequenceOfHAsciiString ();
+ Handle( TColStd_HSequenceOfHAsciiString ) aList = new TColStd_HSequenceOfHAsciiString ();
+ Handle( MS_MetaSchema ) ameta = MSchema () -> MetaSchema ();
- if(ameta->IsPackage(aname))
- {
- WOK_TRACE {
- VerboseMsg("WOK_EXTRACT") << "WOKBuilder_MSHeaderExtractor::ExtractionStatus"
- << "Package not yet Implemented : Out of date" << endm;
- }
- return result;
- }
+ result -> Append ( aName );
+
+ if ( ameta -> IsPackage ( aName ) ) {
+
+ WOK_TRACE {
+
+ VerboseMsg ( "WOK_EXTRACT" ) << "WOKBuilder_MSHeaderExtractor::ExtractionStatus"
+ << "Package not yet Implemented : out of date"
+ << endm;
+ } // end WOK_TRACE
+
+ return result;
+
+ } // end if
- atype = ameta->GetType(aname);
+ atype = ameta -> GetType ( aName );
- if(atype.IsNull())
- {
- Handle(MS_Package) apk = ameta->GetPackage(aname);
+ if ( atype.IsNull () ) {
+
+ Handle( MS_Package ) apk = ameta -> GetPackage ( aName );
- if(apk.IsNull())
- {
- ErrorMsg << "WOKBuilder_MSHeaderExtractor::ExtractionStatus"
- << aname << " is not a known package and not a known type" << endm;
- return result;
- }
- }
+ if ( apk.IsNull () ) {
+
+ ErrorMsg << "WOKBuilder_MSHeaderExtractor::ExtractionStatus"
+ << aName
+ << " is not a known package and not a known type"
+ << endm;
+
+ return result;
+
+ } // end if
+
+ } // end if
- if(atype->IsKind(STANDARD_TYPE(MS_Class)))
- {
- Handle(MS_Class) aclass = Handle(MS_Class)::DownCast(atype);
+ if ( atype -> IsKind ( STANDARD_TYPE( MS_Class ) ) ) {
+
+ Handle( MS_Class ) aclass = Handle( MS_Class ) :: DownCast ( atype );
- if(!aclass->IsKind(STANDARD_TYPE(MS_GenClass)))
- {
- MS::ClassUsedTypes(ameta, aclass, aList, aList);
+ if ( !aclass -> IsKind ( STANDARD_TYPE( MS_GenClass ) ) ) {
+
+ MS :: ClassUsedTypes (ameta, aclass, aList, aList );
- if(atype->IsKind(STANDARD_TYPE(MS_StdClass)))
- {
- Handle(MS_StdClass) msclass = Handle(MS_StdClass)::DownCast(atype);
+ if ( atype -> IsKind ( STANDARD_TYPE( MS_StdClass ) ) ) {
+
+ Handle( MS_StdClass ) msclass = Handle( MS_StdClass ) :: DownCast ( atype );
- if(!msclass->GetMyCreator().IsNull())
- {
- // instantiation
- result->Append(MSchema()->AssociatedEntity(aname));
- }
- if(atype->IsKind(STANDARD_TYPE(MS_Error)))
- {
- // exception
- result->Append(MSchema()->AssociatedEntity(aname));
- }
- }
+ if ( !msclass -> GetMyCreator ().IsNull () )
+
+ result -> Append ( MSchema () -> AssociatedEntity ( aName ) );
+
+ if ( atype -> IsKind ( STANDARD_TYPE( MS_Error ) ) )
+
+ result -> Append ( MSchema () -> AssociatedEntity ( aName ) );
+
+ } // end if
- WOKTools_MapOfHAsciiString amap;
+ WOKTools_MapOfHAsciiString amap;
- for(i=1; i<=aList->Length(); i++)
- {
- astr = aList->Value(i);
- if(!strncmp("Handle_", aList->Value(i)->ToCString(), strlen("Handle_")))
- {
- astr = astr->SubString(strlen("Handle_")+1, astr->Length());
- }
- if(!amap.Contains(astr))
- {
- amap.Add(astr);
- result->Append(astr);
- }
- }
- }
- }
- else
- {
- if(atype->IsKind(STANDARD_TYPE(MS_Pointer)))
- {
- Handle(MS_Pointer) apointer = Handle(MS_Pointer)::DownCast(atype);
+ for ( i = 1; i <= aList -> Length (); ++i ) {
+
+ astr = aList -> Value ( i );
+
+ if ( !strncmp ( "Handle_", aList -> Value ( i ) -> ToCString (), strlen ( "Handle_" ) ) )
+
+ astr = astr -> SubString ( strlen ( "Handle_" ) + 1, astr -> Length () );
+
+ if ( !amap.Contains ( astr ) ) {
+
+ amap.Add ( astr );
+ result -> Append ( astr );
+
+ } // end if
+
+ } // end for
+
+ } // end if
+
+ } else {
+
+ if ( atype -> IsKind ( STANDARD_TYPE( MS_Pointer ) ) ) {
+
+ Handle( MS_Pointer ) apointer = Handle( MS_Pointer ) :: DownCast ( atype );
- result->Append(apointer->Type());
- }
- else
- {
- if(atype->IsKind(STANDARD_TYPE(MS_Alias)))
- {
- Handle(MS_Alias) analias = Handle(MS_Alias)::DownCast(atype);
+ result -> Append ( apointer -> Type () );
+
+ } else {
+
+ if ( atype -> IsKind ( STANDARD_TYPE( MS_Alias ) ) ) {
+
+ Handle( MS_Alias ) analias = Handle( MS_Alias ) :: DownCast ( atype );
- result->Append(analias->Type());
- }
- }
- }
- return result;
-}
+ result -> Append ( analias -> Type () );
+
+ } // end if
+
+ } // end else
+
+ } // end else
+
+ return result;
+} // end WOKBuilder_MSHeaderExtractor :: GetTypeDepList
//=======================================================================
//function : GetTypeMDate
//purpose :
//function : MetaSchema
//purpose :
//=======================================================================
-const Handle(MS_MetaSchema)& WOKBuilder_MSchema::MetaSchema() const
+inline const Handle(MS_MetaSchema)& WOKBuilder_MSchema::MetaSchema() const
{
return myschema;
}
//function : Params
//purpose :
//=======================================================================
-const WOKUtils_Param& WOKBuilder_Tool::Params() const
+inline const WOKUtils_Param& WOKBuilder_Tool::Params() const
{
return myparams;
}
#endif //WNT
static void FASTCALL _print_output ( Standard_CString, WOKBuilder_Tool* );
-#ifdef DEB
-static void FASTCALL _delete_file ( const Handle( TCollection_HAsciiString )& );
-#endif
//---> EUG4YAN
Standard_IMPORT Standard_Boolean g_fCompOrLnk;
//<--- EUG4YAN
InfoMsg << endm;
}
-
-// Unused :
-#ifdef DEB
-static void FASTCALL _delete_file(const Handle(TCollection_HAsciiString)& name)
-{
- Handle(WOKUtils_Path) path = new WOKUtils_Path(name);
-
- if(path->Exists()) path->RemoveFile();
-}
-#endif