#include <TDocStd_Application.hxx>
#include <TColStd_SequenceOfExtendedString.hxx>
#include <Standard_CString.hxx>
-class CDM_MessageDriver;
class AppStd_Application;
#include <TDocStd_Application.hxx>
#include <TColStd_SequenceOfExtendedString.hxx>
#include <Standard_CString.hxx>
-class CDM_MessageDriver;
-
class AppStdL_Application;
DEFINE_STANDARD_HANDLE(AppStdL_Application, TDocStd_Application)
#include <BinMDocStd.hxx>
#include <BinMFunction.hxx>
#include <BinMNaming.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Plugin_Macro.hxx>
#include <Standard_Failure.hxx>
#include <Standard_GUID.hxx>
//=======================================================================
Handle(BinMDF_ADriverTable) BinDrivers::AttributeDrivers
- (const Handle(CDM_MessageDriver)& aMsgDrv)
+ (const Handle(Message_Messenger)& aMsgDrv)
{
Handle(BinMDF_ADriverTable) aTable = new BinMDF_ADriverTable;
class Standard_Transient;
class Standard_GUID;
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class TCollection_AsciiString;
class BinDrivers_DocumentStorageDriver;
class BinDrivers_DocumentRetrievalDriver;
Standard_EXPORT static void DefineFormat (const Handle(TDocStd_Application)& theApp);
//! Creates the table of drivers of types supported
- Standard_EXPORT static Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& MsgDrv);
+ Standard_EXPORT static Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& MsgDrv);
//! returns "1"
Standard_EXPORT static TCollection_AsciiString StorageVersion();
#include <BinMDF_ADriverTable.hxx>
#include <BinMNaming.hxx>
#include <BinMNaming_NamedShapeDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <Standard_IStream.hxx>
//=======================================================================
Handle(BinMDF_ADriverTable) BinDrivers_DocumentRetrievalDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
return BinDrivers::AttributeDrivers (theMessageDriver);
}
void BinDrivers_DocumentRetrievalDriver::ReadShapeSection
(BinLDrivers_DocumentSection& /*theSection*/,
Standard_IStream& theIS,
- const Standard_Boolean /*isMess*/)
+ const Standard_Boolean /*isMess*/)
{
// Read Shapes
catch(Standard_Failure const& anException) {
const TCollection_ExtendedString aMethStr
("BinDrivers_DocumentRetrievalDriver: ");
- WriteMessage (aMethStr + "error of Shape Section " +
- anException.GetMessageString());
+ myMsgDriver ->Send(aMethStr + "error of Shape Section " +
+ anException.GetMessageString(), Message_Fail);
}
}
}
//purpose :
//=======================================================================
void BinDrivers_DocumentRetrievalDriver::CheckShapeSection(
- const Storage_Position& /*ShapeSectionPos*/,
- Standard_IStream& /*IS*/)
+ const Storage_Position& /*ShapeSectionPos*/,
+ Standard_IStream& /*IS*/)
{}
//=======================================================================
//purpose :
//=======================================================================
void BinDrivers_DocumentRetrievalDriver::PropagateDocumentVersion(
- const Standard_Integer theDocVersion )
+ const Standard_Integer theDocVersion )
{
BinMDataStd::SetDocumentVersion(theDocVersion);
BinMNaming::SetDocumentVersion(theDocVersion);
#include <Storage_Position.hxx>
#include <Standard_Integer.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinLDrivers_DocumentSection;
//! Constructor
Standard_EXPORT BinDrivers_DocumentRetrievalDriver();
- Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
Standard_EXPORT virtual void ReadShapeSection (BinLDrivers_DocumentSection& theSection, Standard_IStream& theIS, const Standard_Boolean isMess = Standard_False) Standard_OVERRIDE;
#include <BinMDF_ADriver.hxx>
#include <BinMDF_ADriverTable.hxx>
#include <BinMNaming_NamedShapeDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_NotImplemented.hxx>
#include <Standard_Type.hxx>
//=======================================================================
Handle(BinMDF_ADriverTable) BinDrivers_DocumentStorageDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
return BinDrivers::AttributeDrivers (theMessageDriver);
}
//function : SetWithTriangles
//purpose :
//=======================================================================
-void BinDrivers_DocumentStorageDriver::SetWithTriangles (const Handle(CDM_MessageDriver)& theMessageDriver,
+void BinDrivers_DocumentStorageDriver::SetWithTriangles (const Handle(Message_Messenger)& theMessageDriver,
const Standard_Boolean theWithTriangulation)
{
if (myDrivers.IsNull())
aNamedShapeDriver->WriteShapeSection (theOS);
}
catch(Standard_Failure const& anException) {
- TCollection_ExtendedString anErrorStr ("Error: ");
- TCollection_ExtendedString aStr =
- anErrorStr + "BinDrivers_DocumentStorageDriver, Shape Section :";
- WriteMessage (aStr + anException.GetMessageString());
+ TCollection_ExtendedString anErrorStr ("BinDrivers_DocumentStorageDriver, Shape Section :");
+ myMsgDriver->Send (anErrorStr + anException.GetMessageString(), Message_Fail);
}
}
#include <Standard.hxx>
#include <Standard_Type.hxx>
-
-#include <BinLDrivers_DocumentStorageDriver.hxx>
#include <Standard_OStream.hxx>
+#include <BinLDrivers_DocumentStorageDriver.hxx>
+
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinLDrivers_DocumentSection;
//! Constructor
Standard_EXPORT BinDrivers_DocumentStorageDriver();
- Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
//! implements the procedure of writing a shape section to file
Standard_EXPORT virtual void WriteShapeSection (BinLDrivers_DocumentSection& theDocSection, Standard_OStream& theOS) Standard_OVERRIDE;
Standard_EXPORT Standard_Boolean IsWithTriangles() const;
//! Set if triangulation should be stored or not.
- Standard_EXPORT void SetWithTriangles (const Handle(CDM_MessageDriver)& theMessageDriver,
+ Standard_EXPORT void SetWithTriangles (const Handle(Message_Messenger)& theMessageDriver,
const Standard_Boolean theWithTriangulation);
DEFINE_STANDARD_RTTIEXT(BinDrivers_DocumentStorageDriver,BinLDrivers_DocumentStorageDriver)
#include <BinMDF_ADriverTable.hxx>
#include <BinMDocStd.hxx>
#include <BinMFunction.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Plugin_Macro.hxx>
#include <Standard_Failure.hxx>
#include <Standard_GUID.hxx>
//=======================================================================
Handle(BinMDF_ADriverTable) BinLDrivers::AttributeDrivers
- (const Handle(CDM_MessageDriver)& aMsgDrv)
+ (const Handle(Message_Messenger)& aMsgDrv)
{
Handle(BinMDF_ADriverTable) aTable = new BinMDF_ADriverTable;
class Standard_Transient;
class Standard_GUID;
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class TCollection_AsciiString;
class BinLDrivers_DocumentStorageDriver;
class BinLDrivers_DocumentRetrievalDriver;
Standard_EXPORT static void DefineFormat (const Handle(TDocStd_Application)& theApp);
//! Creates a table of the supported drivers' types
- Standard_EXPORT static Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& MsgDrv);
+ Standard_EXPORT static Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& MsgDrv);
//! returns last storage version
Standard_EXPORT static TCollection_AsciiString StorageVersion();
#include <BinObjMgt_Persistent.hxx>
#include <CDM_Application.hxx>
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <FSD_BinaryFile.hxx>
#include <FSD_FileHeader.hxx>
#include <OSD_OpenFile.hxx>
Handle(TDocStd_Document)::DownCast(theDoc);
if (aDoc.IsNull()) {
#ifdef OCCT_DEBUG
- WriteMessage (aMethStr + "error: null document");
+ myMsgDriver->Send (aMethStr + "error: null document", Message_Fail);
#endif
myReaderStatus = PCDM_RS_NoDocument;
return;
// 1.a Version of writer
if (!aHeaderData->StorageVersion().IsIntegerValue()) {
// file has no format version
- WriteMessage (aMethStr + "error: file has no format version");
+ myMsgDriver->Send (aMethStr + "error: file has no format version", Message_Fail);
myReaderStatus = PCDM_RS_FormatFailure;
return;
}
if (!CheckDocumentVersion(aFileVer, aCurrVer)) {
myReaderStatus = PCDM_RS_NoVersion;
// file was written with another version
- WriteMessage (aMethStr + "error: wrong file version: " +
- aHeaderData->StorageVersion() + " while current is " +
- BinLDrivers::StorageVersion());
+ myMsgDriver->Send (aMethStr + "error: wrong file version: " +
+ aHeaderData->StorageVersion() + " while current is " +
+ BinLDrivers::StorageVersion(), Message_Fail);
return;
}
else if (begin) {
if ( aFileVer < 8 ) {
#ifdef DATATYPE_MIGRATION
- TCollection_AsciiString newName;
- if(Storage_Schema::CheckTypeMigration(aStr, newName)) {
+ TCollection_AsciiString newName;
+ if(Storage_Schema::CheckTypeMigration(aStr, newName)) {
#ifdef OCCT_DEBUG
- cout << "CheckTypeMigration:OldType = " <<aStr << " Len = "<<aStr.Length()<<endl;
- cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<endl;
+ cout << "CheckTypeMigration:OldType = " <<aStr << " Len = "<<aStr.Length()<<endl;
+ cout << "CheckTypeMigration:NewType = " <<newName << " Len = "<< newName.Length()<<endl;
#endif
- aStr = newName;
- }
+ aStr = newName;
+ }
#endif
}
aTypeNames.Append (aStr);
if (myDrivers->GetDriver(i).IsNull())
myMapUnsupported.Add(i);
if (!myMapUnsupported.IsEmpty()) {
- WriteMessage (aMethStr + "warning: "
- "the following attributes have no driver:");
+ myMsgDriver->Send (aMethStr + "warning: "
+ "the following attributes have no driver:", Message_Warning);
for (i=1; i <= aTypeNames.Length(); i++)
if (myMapUnsupported.Contains(i))
- WriteMessage (aTypeNames(i));
+ myMsgDriver->Send (aTypeNames(i), Message_Warning);
}
// propagate the opened document version to data drivers
if (theIStream.eof()) {
// There is no shape section in the file.
- WriteMessage (aMethStr + "error: shape section is not found");
+ myMsgDriver->Send (aMethStr + "error: shape section is not found", Message_Fail);
myReaderStatus = PCDM_RS_ReaderException;
return;
}
for (; anIterS.More(); anIterS.Next()) {
BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue();
if (aCurSection.IsPostRead() == Standard_False) {
- theIStream.seekg ((std::streamsize)aCurSection.Offset());
+ theIStream.seekg ((streampos) aCurSection.Offset());
if (aCurSection.Name().IsEqual ((Standard_CString)SHAPESECTION_POS))
ReadShapeSection (aCurSection, theIStream);
else
if (aShapeLabel.Length() > 0) {
// version 2+(with shapes) and higher goes here
if(aShapeLabel.Length() <= 0 || aShapeLabel != SHAPESECTION_POS) {
- WriteMessage (aMethStr + "error: Format failure");
+ myMsgDriver->Send (aMethStr + "error: Format failure", Message_Fail);
myReaderStatus = PCDM_RS_FormatFailure;
return;
}
cout <<"aShapeSectionPos = " <<aShapeSectionPos <<endl;
#endif
if(aShapeSectionPos) {
- aDocumentPos = theIStream.tellg();
- theIStream.seekg((streampos) aShapeSectionPos);
+ aDocumentPos = theIStream.tellg();
+ theIStream.seekg((streampos) aShapeSectionPos);
- CheckShapeSection(aShapeSectionPos, theIStream);
- // Read Shapes
- BinLDrivers_DocumentSection aCurSection;
- ReadShapeSection (aCurSection, theIStream, Standard_False);
+ CheckShapeSection(aShapeSectionPos, theIStream);
+ // Read Shapes
+ BinLDrivers_DocumentSection aCurSection;
+ ReadShapeSection (aCurSection, theIStream, Standard_False);
}
}
} // end of reading Sections or shape section
for (; aSectIter.More(); aSectIter.Next()) {
BinLDrivers_DocumentSection& aCurSection = aSectIter.ChangeValue();
if (aCurSection.IsPostRead()) {
- theIStream.seekg ((std::streamsize)aCurSection.Offset());
- ReadSection (aCurSection, theDoc, theIStream);
+ theIStream.seekg ((streampos) aCurSection.Offset());
+ ReadSection (aCurSection, theDoc, theIStream);
}
}
}
else
tAtt = aDriver->NewEmpty();
if (tAtt->Label().IsNull())
- theLabel.AddAttribute (tAtt);
+ theLabel.AddAttribute (tAtt);
else
- WriteMessage (aMethStr +
- "warning: attempt to attach attribute " +
- aDriver->TypeName() + " to a second label");
+ myMsgDriver->Send (aMethStr +
+ "warning: attempt to attach attribute " +
+ aDriver->TypeName() + " to a second label", Message_Warning);
Standard_Boolean ok = aDriver->Paste (myPAtt, tAtt, myRelocTable);
if (!ok) {
// error converting persistent to transient
- WriteMessage (aMethStr + "warning: failure reading attribute " +
- aDriver->TypeName());
+ myMsgDriver->Send (aMethStr + "warning: failure reading attribute " +
+ aDriver->TypeName(), Message_Warning);
}
else if (!isBound)
myRelocTable.Bind (anID, tAtt);
}
else if (!myMapUnsupported.Contains(myPAtt.TypeId()))
- WriteMessage (aMethStr + "warning: type ID not registered in header: "
- + myPAtt.TypeId());
+ myMsgDriver->Send (aMethStr + "warning: type ID not registered in header: "
+ + myPAtt.TypeId(), Message_Warning);
// read next attribute
theIS >> myPAtt;
}
if (!theIS || myPAtt.TypeId() != BinLDrivers_ENDATTRLIST) {
// unexpected EOF or garbage data
- WriteMessage (aMethStr + "error: unexpected EOF or garbage data");
+ myMsgDriver->Send (aMethStr + "error: unexpected EOF or garbage data", Message_Fail);
myReaderStatus = PCDM_RS_UnrecognizedFileFormat;
return -1;
}
}
if (aTag != BinLDrivers_ENDLABEL) {
// invalid end label marker
- WriteMessage (aMethStr + "error: invalid end label marker");
+ myMsgDriver->Send (aMethStr + "error: invalid end label marker", Message_Fail);
myReaderStatus = PCDM_RS_UnrecognizedFileFormat;
return -1;
}
//=======================================================================
Handle(BinMDF_ADriverTable) BinLDrivers_DocumentRetrievalDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
return BinLDrivers::AttributeDrivers (theMessageDriver);
}
-
-//=======================================================================
-//function : WriteMessage
-//purpose : write theMessage to the MessageDriver of
-// theApplication
-//=======================================================================
-
-void BinLDrivers_DocumentRetrievalDriver::WriteMessage
- (const TCollection_ExtendedString& theMsg)
-{
- if (!myMsgDriver.IsNull())
- myMsgDriver->Write (theMsg.ToExtString());
-}
-
//=======================================================================
//function : ReadSection
//purpose :
void BinLDrivers_DocumentRetrievalDriver::ReadShapeSection
(BinLDrivers_DocumentSection& theSection,
- Standard_IStream& /*theIS*/,
- const Standard_Boolean isMess)
+ Standard_IStream& /*theIS*/,
+ const Standard_Boolean isMess)
{
if(isMess && theSection.Length()) {
const TCollection_ExtendedString aMethStr ("BinLDrivers_DocumentRetrievalDriver: ");
- WriteMessage (aMethStr + "warning: Geometry is not supported by Lite schema. ");
+ myMsgDriver->Send (aMethStr + "warning: Geometry is not supported by Lite schema. ", Message_Warning);
}
}
//purpose :
//=======================================================================
void BinLDrivers_DocumentRetrievalDriver::CheckShapeSection(
- const Storage_Position& ShapeSectionPos,
- Standard_IStream& IS)
+ const Storage_Position& ShapeSectionPos,
+ Standard_IStream& IS)
{
if (!IS.eof())
{
#endif
if(ShapeSectionPos != endPos) {
const TCollection_ExtendedString aMethStr ("BinLDrivers_DocumentRetrievalDriver: ");
- WriteMessage (aMethStr + "warning: Geometry is not supported by Lite schema. ");
+ myMsgDriver->Send (aMethStr + "warning: Geometry is not supported by Lite schema. ", Message_Warning);
}
}
}
#include <Storage_Data.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class TCollection_ExtendedString;
class PCDM_Document;
class CDM_Document;
const Handle(CDM_Document)& theDoc,
const Handle(CDM_Application)& theApplication) Standard_OVERRIDE;
- Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver);
//! The default implementation: if the version of the file is greater than the
//! current or lesser than 2, then return false, else true
Standard_EXPORT virtual Standard_Boolean CheckDocumentVersion (const Standard_Integer theFileVersion, const Standard_Integer theCurVersion);
-
- //! write theMessage to the MessageDriver of the
- //! Application
- Standard_EXPORT void WriteMessage (const TCollection_ExtendedString& theMessage);
Handle(BinMDF_ADriverTable) myDrivers;
BinObjMgt_RRelocationTable myRelocTable;
-
+ Handle(Message_Messenger) myMsgDriver;
private:
BinObjMgt_Persistent myPAtt;
- Handle(CDM_MessageDriver) myMsgDriver;
TColStd_MapOfInteger myMapUnsupported;
BinLDrivers_VectorOfDocumentSection mySections;
#include <BinObjMgt_Persistent.hxx>
#include <CDM_Application.hxx>
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <FSD_BinaryFile.hxx>
#include <FSD_FileHeader.hxx>
#include <OSD_OpenFile.hxx>
if (!myRelocTable.Extent()) {
// No objects written
#ifdef OCCT_DEBUG
- WriteMessage ("BinLDrivers_DocumentStorageDriver, no objects written");
+ myMsgDriver->Send ("BinLDrivers_DocumentStorageDriver, no objects written", Message_Info);
#endif
SetIsError(Standard_True);
SetStoreStatus(PCDM_SS_No_Obj);
if (!theOStream) {
// A problem with the stream
#ifdef OCCT_DEBUG
- TCollection_ExtendedString anErrorStr ("Error: ");
- WriteMessage (anErrorStr + "BinLDrivers_DocumentStorageDriver, Problem with the file stream, rdstate="
- + (Standard_Integer )theOStream.rdstate());
+ TCollection_ExtendedString anErrorStr ("BinLDrivers_DocumentStorageDriver, Problem with the file stream, rdstate = ");
+ myMsgDriver->Send (anErrorStr + (Standard_Integer )theOStream.rdstate(), Message_Info);
#endif
SetIsError(Standard_True);
SetStoreStatus(PCDM_SS_WriteFailure);
if (!myMapUnsupported.Contains(theType)) {
myMapUnsupported.Add(theType);
#ifdef OCCT_DEBUG
- WriteMessage (aMsg + theType->Name() + " not found");
+ myMsgDriver->Send (aMsg + theType->Name() + " not found", Message_Info);
#endif
}
}
//=======================================================================
Handle(BinMDF_ADriverTable) BinLDrivers_DocumentStorageDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
return BinLDrivers::AttributeDrivers (theMessageDriver);
}
}
-//=======================================================================
-//function : WriteMessage
-//purpose : write theMessage to the MessageDriver of the
-// Application
-//=======================================================================
-
-void BinLDrivers_DocumentStorageDriver::WriteMessage
- (const TCollection_ExtendedString& theMsg)
-{
- if (!myMsgDriver.IsNull())
- myMsgDriver->Write (theMsg.ToExtString());
-}
-
//=======================================================================
//function : AddSection
//purpose :
#include <Standard_Boolean.hxx>
#include <Standard_Type.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class TCollection_ExtendedString;
class CDM_Document;
class TDF_Label;
//! Write <theDocument> to theOStream
Standard_EXPORT virtual void Write (const Handle(CDM_Document)& theDocument, Standard_OStream& theOStream) Standard_OVERRIDE;
- Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver);
//! Create a section that should be written after the OCAF data
Standard_EXPORT void AddSection (const TCollection_AsciiString& theName, const Standard_Boolean isPostRead = Standard_True);
//! defines the procedure of writing a shape section to file
Standard_EXPORT virtual void WriteShapeSection (BinLDrivers_DocumentSection& theDocSection, Standard_OStream& theOS);
-
- //! write theMessage to the MessageDriver of the
- //! Application
- Standard_EXPORT void WriteMessage (const TCollection_ExtendedString& theMessage);
Handle(BinMDF_ADriverTable) myDrivers;
BinObjMgt_SRelocationTable myRelocTable;
-
+ Handle(Message_Messenger) myMsgDriver;
private:
Standard_EXPORT void UnsupportedAttrMsg (const Handle(Standard_Type)& theType);
BinObjMgt_Persistent myPAtt;
- Handle(CDM_MessageDriver) myMsgDriver;
TDF_LabelList myEmptyLabels;
TColStd_MapOfTransient myMapUnsupported;
TColStd_IndexedMapOfTransient myTypesMap;
#include <BinMDF_ADriverTable.hxx>
#include <BinMDF_ReferenceDriver.hxx>
#include <BinMDF_TagSourceDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
//=======================================================================
//function : AddDrivers
//purpose :
//=======================================================================
void BinMDF::AddDrivers (const Handle(BinMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& aMsgDrv)
+ const Handle(Message_Messenger)& aMsgDrv)
{
aDriverTable->AddDriver (new BinMDF_ReferenceDriver (aMsgDrv) );
aDriverTable->AddDriver (new BinMDF_TagSourceDriver (aMsgDrv) );
#include <Standard_Handle.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinMDF_ADriver;
class BinMDF_ReferenceDriver;
class BinMDF_TagSourceDriver;
//! Adds the attribute storage drivers to <aDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& aMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& aDriverTable, const Handle(Message_Messenger)& aMsgDrv);
#include <BinMDF_ADriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
//function : BinMDF_ADriver
//purpose : Constructor
//=======================================================================
-BinMDF_ADriver::BinMDF_ADriver (const Handle(CDM_MessageDriver)& theMsgDriver,
+BinMDF_ADriver::BinMDF_ADriver (const Handle(Message_Messenger)& theMsgDriver,
const Standard_CString theName)
: myMessageDriver (theMsgDriver)
{
if (theName)
myTypeName = theName;
-}
-//=======================================================================
-//function : WriteMessage
-//purpose :
-//=======================================================================
-
-void BinMDF_ADriver::WriteMessage
- (const TCollection_ExtendedString& aMessage) const
-{
- myMessageDriver -> Write (aMessage.ToExtString());
-}
+}
\ No newline at end of file
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class TCollection_AsciiString;
class BinObjMgt_Persistent;
//! into <aTarget>, using the relocation table
//! <aRelocTable> to keep the sharings.
Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& aSource, BinObjMgt_Persistent& aTarget, BinObjMgt_SRelocationTable& aRelocTable) const = 0;
-
- //! Send message to Application (usually when error occurres)
- Standard_EXPORT void WriteMessage (const TCollection_ExtendedString& theMessage) const;
-
-
DEFINE_STANDARD_RTTIEXT(BinMDF_ADriver,Standard_Transient)
protected:
- Standard_EXPORT BinMDF_ADriver(const Handle(CDM_MessageDriver)& theMsgDriver, const Standard_CString theName = NULL);
+ Standard_EXPORT BinMDF_ADriver(const Handle(Message_Messenger)& theMsgDriver, const Standard_CString theName = NULL);
TCollection_AsciiString myTypeName;
-
-private:
-
-
- Handle(CDM_MessageDriver) myMessageDriver;
+ Handle(Message_Messenger) myMessageDriver;
};
#include <BinMDF_ReferenceDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Reference.hxx>
//purpose : Constructor
//=======================================================================
BinMDF_ReferenceDriver::BinMDF_ReferenceDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDF_Reference)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDF_ReferenceDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDF_ReferenceDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDF_TagSourceDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_TagSource.hxx>
//purpose : Constructor
//=======================================================================
BinMDF_TagSourceDriver::BinMDF_TagSourceDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDF_TagSourceDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDF_TagSourceDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_UAttributeDriver.hxx>
#include <BinMDataStd_VariableDriver.hxx>
#include <BinMDF_ADriverTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
static Standard_Integer myDocumentVersion = -1;
//=======================================================================
//=======================================================================
void BinMDataStd::AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable,
- const Handle(CDM_MessageDriver)& theMsgDriver)
+ const Handle(Message_Messenger)& theMsgDriver)
{
theDriverTable->AddDriver (new BinMDataStd_CommentDriver (theMsgDriver) );
theDriverTable->AddDriver (new BinMDataStd_ExpressionDriver (theMsgDriver) );
#include <BinObjMgt_Persistent.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinMDataStd_NameDriver;
class BinMDataStd_IntegerDriver;
class BinMDataStd_RealDriver;
//! Adds the attribute drivers to <theDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(CDM_MessageDriver)& aMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(Message_Messenger)& aMsgDrv);
Standard_EXPORT static void SetDocumentVersion (const Standard_Integer DocVersion);
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_AsciiString.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataStd_AsciiStringDriver::BinMDataStd_AsciiStringDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: BinMDF_ADriver (theMessageDriver, STANDARD_TYPE(TDataStd_AsciiString)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_AsciiStringDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_AsciiStringDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_BooleanArrayDriver.hxx>
#include <BinMDataStd.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <TColStd_HArray1OfByte.hxx>
//function : BinMDataStd_BooleanArrayDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_BooleanArrayDriver::BinMDataStd_BooleanArrayDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_BooleanArrayDriver::BinMDataStd_BooleanArrayDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_BooleanArray)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_BooleanArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_BooleanArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_BooleanListDriver.hxx>
#include <BinMDataStd.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfByte.hxx>
#include <TDataStd_BooleanList.hxx>
//function : BinMDataStd_BooleanListDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_BooleanListDriver::BinMDataStd_BooleanListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_BooleanListDriver::BinMDataStd_BooleanListDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_BooleanList)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_BooleanListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_BooleanListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd.hxx>
#include <BinMDataStd_ByteArrayDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <TColStd_HArray1OfByte.hxx>
//function : BinMDataStd_ByteArrayDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_ByteArrayDriver::BinMDataStd_ByteArrayDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_ByteArrayDriver::BinMDataStd_ByteArrayDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_ByteArray)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_ByteArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_ByteArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_CommentDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Comment.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_CommentDriver::BinMDataStd_CommentDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_CommentDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_CommentDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Directory.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataStd_DirectoryDriver::BinMDataStd_DirectoryDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_Directory)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_DirectoryDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_DirectoryDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_ExpressionDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Expression.hxx>
#include <TDataStd_Variable.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_ExpressionDriver::BinMDataStd_ExpressionDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_ExpressionDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_ExpressionDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd.hxx>
#include <BinMDataStd_ExtStringArrayDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfExtendedString.hxx>
#include <TColStd_HArray1OfExtendedString.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_ExtStringArrayDriver::BinMDataStd_ExtStringArrayDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_ExtStringArray)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_ExtStringArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_ExtStringArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_ExtStringListDriver.hxx>
#include <BinMDataStd.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfExtendedString.hxx>
#include <TDataStd_ExtStringList.hxx>
//function : BinMDataStd_ExtStringListDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_ExtStringListDriver::BinMDataStd_ExtStringListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_ExtStringListDriver::BinMDataStd_ExtStringListDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_ExtStringList)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_ExtStringListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_ExtStringListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TColStd_HPackedMapOfInteger.hxx>
//purpose :
//=======================================================================
BinMDataStd_IntPackedMapDriver::BinMDataStd_IntPackedMapDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: BinMDF_ADriver (theMessageDriver, STANDARD_TYPE(TDataStd_IntPackedMap)->Name())
{
}
{
Handle(TDataStd_IntPackedMap) aTagAtt = Handle(TDataStd_IntPackedMap)::DownCast(Target);
if(aTagAtt.IsNull()) {
- WriteMessage (TCollection_ExtendedString("IntPackedMapDriver:: The target attribute is Null."));
+ myMessageDriver->Send ("IntPackedMapDriver:: The target attribute is Null.", Message_Fail);
return Standard_False;
}
Standard_Integer aSize = 0;
if (! (Source >> aSize)) {
- WriteMessage (TCollection_ExtendedString("Cannot retrieve size for IntPackedMap attribute."));
+ myMessageDriver->Send ("Cannot retrieve size for IntPackedMap attribute.", Message_Fail);
return Standard_False;
}
if(aSize) {
for(Standard_Integer i = 0; i< aSize; i++) {
Standard_Boolean ok = Source >> aKey;
if (!ok) {
- WriteMessage ("Cannot retrieve integer member for IntPackedMap attribute.");
+ myMessageDriver->Send ("Cannot retrieve integer member for IntPackedMap attribute.", Message_Fail);
return Standard_False;
}
if(!aHMap->ChangeMap().Add( aKey )) return Standard_False;
{
Handle(TDataStd_IntPackedMap) anAtt = Handle(TDataStd_IntPackedMap)::DownCast(Source);
if (anAtt.IsNull()) {
- WriteMessage ("IntPackedMapDriver:: The source attribute is Null.");
+ myMessageDriver->Send ("IntPackedMapDriver:: The source attribute is Null.", Message_Fail);
return;
}
Standard_Integer aSize = (anAtt->IsEmpty()) ? 0 : anAtt->Extent();
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_IntPackedMapDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_IntPackedMapDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd.hxx>
#include <BinMDataStd_IntegerArrayDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfInteger.hxx>
#include <TDataStd_IntegerArray.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_IntegerArrayDriver::BinMDataStd_IntegerArrayDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_IntegerArray)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_IntegerArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_IntegerArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_IntegerDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_IntegerDriver::BinMDataStd_IntegerDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_Integer)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_IntegerDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_IntegerDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_IntegerListDriver.hxx>
#include <BinMDataStd.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
//function : BinMDataStd_IntegerListDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_IntegerListDriver::BinMDataStd_IntegerListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_IntegerListDriver::BinMDataStd_IntegerListDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_IntegerList)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_IntegerListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_IntegerListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_NameDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Name.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataStd_NameDriver::BinMDataStd_NameDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: BinMDF_ADriver (theMessageDriver, STANDARD_TYPE(TDataStd_Name)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_NameDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_NameDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_NamedDataDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TColStd_DataMapIteratorOfDataMapOfStringInteger.hxx>
//function : BinMDataStd_NamedDataDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_NamedDataDriver::BinMDataStd_NamedDataDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_NamedDataDriver::BinMDataStd_NamedDataDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_NamedData)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_NamedDataDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_NamedDataDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_NoteBook.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataStd_NoteBookDriver::BinMDataStd_NoteBookDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_NoteBook)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_NoteBookDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_NoteBookDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd.hxx>
#include <BinMDataStd_RealArrayDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfReal.hxx>
#include <TDataStd_RealArray.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_RealArrayDriver::BinMDataStd_RealArrayDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_RealArray)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_RealArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_RealArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_RealDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_RealDriver::BinMDataStd_RealDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_Real)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_RealDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_RealDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_RealListDriver.hxx>
#include <BinMDataStd.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfReal.hxx>
#include <TColStd_ListIteratorOfListOfReal.hxx>
//function : BinMDataStd_RealListDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_RealListDriver::BinMDataStd_RealListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_RealListDriver::BinMDataStd_RealListDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_RealList)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_RealListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_RealListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_ReferenceArrayDriver.hxx>
#include <BinMDataStd.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ReferenceArray.hxx>
#include <TDF_Attribute.hxx>
//function : BinMDataStd_ReferenceArrayDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_ReferenceArrayDriver::BinMDataStd_ReferenceArrayDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_ReferenceArrayDriver::BinMDataStd_ReferenceArrayDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_ReferenceArray)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_ReferenceArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_ReferenceArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_ReferenceListDriver.hxx>
#include <BinMDataStd.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ReferenceList.hxx>
#include <TDF_Attribute.hxx>
//function : BinMDataStd_ReferenceListDriver
//purpose : Constructor
//=======================================================================
-BinMDataStd_ReferenceListDriver::BinMDataStd_ReferenceListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_ReferenceListDriver::BinMDataStd_ReferenceListDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_ReferenceList)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_ReferenceListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_ReferenceListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_RelationDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Relation.hxx>
#include <TDataStd_Variable.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_RelationDriver::BinMDataStd_RelationDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_RelationDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_RelationDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Tick.hxx>
#include <TDF_Attribute.hxx>
//function : BinMDataStd_TickDriver
//purpose :
//=======================================================================
-BinMDataStd_TickDriver::BinMDataStd_TickDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataStd_TickDriver::BinMDataStd_TickDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_Tick)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_TickDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_TickDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_TreeNodeDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TDataStd_TreeNode.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_TreeNodeDriver::BinMDataStd_TreeNodeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_TreeNodeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_TreeNodeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_UAttributeDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_UAttribute.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_UAttributeDriver::BinMDataStd_UAttributeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_UAttributeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_UAttributeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataStd_VariableDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TDataStd_Variable.hxx>
//purpose : Constructor
//=======================================================================
BinMDataStd_VariableDriver::BinMDataStd_VariableDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataStd_VariableDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataStd_VariableDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataXtd_PointDriver.hxx>
#include <BinMDataXtd_ShapeDriver.hxx>
#include <BinMDF_ADriverTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <BinMDataXtd_PresentationDriver.hxx>
#include <BinMDataXtd_PositionDriver.hxx>
#include <BinMDataXtd_TriangulationDriver.hxx>
//=======================================================================
void BinMDataXtd::AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable,
- const Handle(CDM_MessageDriver)& theMsgDriver)
+ const Handle(Message_Messenger)& theMsgDriver)
{
theDriverTable->AddDriver (new BinMDataXtd_ConstraintDriver (theMsgDriver) );
theDriverTable->AddDriver (new BinMDataXtd_GeometryDriver (theMsgDriver) );
#include <Standard_Integer.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinMDataXtd_PointDriver;
class BinMDataXtd_AxisDriver;
class BinMDataXtd_PlaneDriver;
//! Adds the attribute drivers to <theDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(CDM_MessageDriver)& aMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(Message_Messenger)& aMsgDrv);
Standard_EXPORT static void SetDocumentVersion (const Standard_Integer DocVersion);
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Axis.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataXtd_AxisDriver::BinMDataXtd_AxisDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataXtd_Axis)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_AxisDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_AxisDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataXtd_ConstraintDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Real.hxx>
#include <TDataXtd_Constraint.hxx>
//purpose : Constructor
//=======================================================================
BinMDataXtd_ConstraintDriver::BinMDataXtd_ConstraintDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_ConstraintDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_ConstraintDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataXtd_GeometryDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Geometry.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
BinMDataXtd_GeometryDriver::BinMDataXtd_GeometryDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_GeometryDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_GeometryDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataXtd_PatternStdDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
//purpose : Constructor
//=======================================================================
BinMDataXtd_PatternStdDriver::BinMDataXtd_PatternStdDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_PatternStdDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_PatternStdDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Placement.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataXtd_PlacementDriver::BinMDataXtd_PlacementDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataXtd_Placement)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_PlacementDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_PlacementDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Plane.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataXtd_PlaneDriver::BinMDataXtd_PlaneDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataXtd_Plane)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_PlaneDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_PlaneDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Point.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataXtd_PointDriver::BinMDataXtd_PointDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataXtd_Point)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_PointDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_PointDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
//purpose : Constructor
//=======================================================================
BinMDataXtd_PositionDriver::BinMDataXtd_PositionDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataXtd_Position)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_PositionDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_PositionDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <TDataXtd_Presentation.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
IMPLEMENT_STANDARD_RTTIEXT(BinMDataXtd_PresentationDriver,BinMDF_ADriver)
//purpose : Constructor
//=======================================================================
BinMDataXtd_PresentationDriver::BinMDataXtd_PresentationDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(TDataXtd_Presentation)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_PresentationDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_PresentationDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Shape.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMDataXtd_ShapeDriver::BinMDataXtd_ShapeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataXtd_Shape)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_ShapeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_ShapeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDataXtd_TriangulationDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Triangulation.hxx>
#include <TDF_Attribute.hxx>
//function : BinMDataXtd_TriangulationDriver
//purpose : Constructor
//=======================================================================
-BinMDataXtd_TriangulationDriver::BinMDataXtd_TriangulationDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMDataXtd_TriangulationDriver::BinMDataXtd_TriangulationDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataXtd_Triangulation)->Name())
{
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDataXtd_TriangulationDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDataXtd_TriangulationDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMDF_ADriverTable.hxx>
#include <BinMDocStd.hxx>
#include <BinMDocStd_XLinkDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
//=======================================================================
//function : AddDrivers
//purpose :
//=======================================================================
void BinMDocStd::AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable,
- const Handle(CDM_MessageDriver)& theMsgDriver)
+ const Handle(Message_Messenger)& theMsgDriver)
{
theDriverTable->AddDriver (new BinMDocStd_XLinkDriver (theMsgDriver) );
#include <Standard_Handle.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinMDocStd_XLinkDriver;
//! Adds the attribute drivers to <theDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(CDM_MessageDriver)& aMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(Message_Messenger)& aMsgDrv);
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDocStd_XLink.hxx>
//purpose :
//=======================================================================
BinMDocStd_XLinkDriver::BinMDocStd_XLinkDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDocStd_XLink)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMDocStd_XLinkDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMDocStd_XLinkDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMFunction_FunctionDriver.hxx>
#include <BinMFunction_GraphNodeDriver.hxx>
#include <BinMFunction_ScopeDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
//=======================================================================
//function : AddDrivers
//purpose :
//=======================================================================
void BinMFunction::AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable,
- const Handle(CDM_MessageDriver)& theMsgDriver)
+ const Handle(Message_Messenger)& theMsgDriver)
{
theDriverTable->AddDriver (new BinMFunction_FunctionDriver (theMsgDriver) );
theDriverTable->AddDriver (new BinMFunction_GraphNodeDriver (theMsgDriver) );
#include <Standard_Handle.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinMFunction_FunctionDriver;
class BinMFunction_GraphNodeDriver;
class BinMFunction_ScopeDriver;
//! Adds the attribute drivers to <theDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(CDM_MessageDriver)& aMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(Message_Messenger)& aMsgDrv);
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TFunction_Function.hxx>
//purpose :
//=======================================================================
BinMFunction_FunctionDriver::BinMFunction_FunctionDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TFunction_Function)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMFunction_FunctionDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMFunction_FunctionDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
//function : BinMFunction_GraphNodeDriver
//purpose :
//=======================================================================
-BinMFunction_GraphNodeDriver::BinMFunction_GraphNodeDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMFunction_GraphNodeDriver::BinMFunction_GraphNodeDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TFunction_GraphNode)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMFunction_GraphNodeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMFunction_GraphNodeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_Array1OfInteger.hxx>
#include <TDF_Attribute.hxx>
//function : BinMFunction_GraphNodeDriver
//purpose :
//=======================================================================
-BinMFunction_ScopeDriver::BinMFunction_ScopeDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMFunction_ScopeDriver::BinMFunction_ScopeDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TFunction_Scope)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMFunction_ScopeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMFunction_ScopeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMNaming.hxx>
#include <BinMNaming_NamedShapeDriver.hxx>
#include <BinMNaming_NamingDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
static Standard_Integer myDocumentVersion = -1;
//=======================================================================
//purpose :
//=======================================================================
void BinMNaming::AddDrivers (const Handle(BinMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& aMessageDriver)
+ const Handle(Message_Messenger)& aMessageDriver)
{
aDriverTable->AddDriver (new BinMNaming_NamedShapeDriver(aMessageDriver));
aDriverTable->AddDriver (new BinMNaming_NamingDriver(aMessageDriver));
#include <Standard_Integer.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinMNaming_NamedShapeDriver;
class BinMNaming_NamingDriver;
//! Adds the attribute drivers to <theDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(CDM_MessageDriver)& aMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(Message_Messenger)& aMsgDrv);
Standard_EXPORT static void SetDocumentVersion (const Standard_Integer DocVersion);
#include <BinObjMgt_Persistent.hxx>
#include <BinTools_LocationSet.hxx>
#include <BinTools_ShapeSet.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_DomainError.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
//=======================================================================
BinMNaming_NamedShapeDriver::BinMNaming_NamedShapeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TNaming_NamedShape)->Name()), myShapeSet(Standard_False),myFormatNb(FORMAT_NUMBER)
{
}
#include <BinObjMgt_SRelocationTable.hxx>
#include <Standard_IStream.hxx>
#include <Standard_OStream.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
class BinTools_LocationSet;
public:
- Standard_EXPORT BinMNaming_NamedShapeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMNaming_NamedShapeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinObjMgt_Persistent.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
//=======================================================================
BinMNaming_NamingDriver::BinMNaming_NamingDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TNaming_Naming)->Name())
{
}
else {
aMsg = TCollection_ExtendedString("BinMNaming_NamingDriver: "
"Cannot retrieve Index of Name");
- WriteMessage (aMsg);
+ myMessageDriver->Send (aMsg, Message_Warning);
}
} else {
aMsg = TCollection_ExtendedString("BinMNaming_NamingDriver: "
"Cannot retrieve reference on "
"StopNamedShape");
- WriteMessage (aMsg);
+ myMessageDriver->Send (aMsg, Message_Warning);
}
} else {
aMsg = TCollection_ExtendedString("BinMNaming_NamingDriver: "
"Cannot retrieve reference on "
"Arguments of Name");
- WriteMessage (aMsg);
+ myMessageDriver->Send (aMsg, Message_Warning);
}
if(BinMNaming::DocumentVersion() > 3) {
} else {
aMsg = TCollection_ExtendedString("BinMNaming_NamingDriver: "
"Cannot retrieve Name Orientation ");
- WriteMessage (aMsg);
+ myMessageDriver->Send (aMsg, Message_Warning);
}
}
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMNaming_NamingDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT BinMNaming_NamingDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_ViewDriver.hxx>
#include <BinMXCAFDoc_ViewToolDriver.hxx>
#include <BinMXCAFDoc_VolumeDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <TNaming_NamedShape.hxx>
//=======================================================================
//purpose :
//=======================================================================
void BinMXCAFDoc::AddDrivers(const Handle(BinMDF_ADriverTable)& theDriverTable,
- const Handle(CDM_MessageDriver)& theMsgDrv)
+ const Handle(Message_Messenger)& theMsgDrv)
{
theDriverTable->AddDriver( new BinMXCAFDoc_AreaDriver (theMsgDrv));
theDriverTable->AddDriver( new BinMXCAFDoc_CentroidDriver (theMsgDrv));
#include <Standard_Handle.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinMXCAFDoc_AreaDriver;
class BinMXCAFDoc_CentroidDriver;
class BinMXCAFDoc_ClippingPlaneToolDriver;
//! Adds the attribute drivers to <theDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(CDM_MessageDriver)& theMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable, const Handle(Message_Messenger)& theMsgDrv);
#include <BinMXCAFDoc_AreaDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_Area.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_AreaDriver::BinMXCAFDoc_AreaDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_AreaDriver::BinMXCAFDoc_AreaDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Area)->Name()) {
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_AreaDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_AreaDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <BinMXCAFDoc_AssemblyItemRefDriver.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_AssemblyItemRefDriver::BinMXCAFDoc_AssemblyItemRefDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_AssemblyItemRefDriver::BinMXCAFDoc_AssemblyItemRefDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_AssemblyItemRef)->Name())
{
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
{
public:
- Standard_EXPORT BinMXCAFDoc_AssemblyItemRefDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_AssemblyItemRefDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_CentroidDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_Centroid.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_CentroidDriver::BinMXCAFDoc_CentroidDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_CentroidDriver::BinMXCAFDoc_CentroidDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Centroid)->Name()) {
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_CentroidDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_CentroidDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_ClippingPlaneToolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_ClippingPlaneTool.hxx>
//purpose :
//=======================================================================
BinMXCAFDoc_ClippingPlaneToolDriver::BinMXCAFDoc_ClippingPlaneToolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_ClippingPlaneTool)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
{
public:
- Standard_EXPORT BinMXCAFDoc_ClippingPlaneToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_ClippingPlaneToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_ColorDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_Color.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_ColorDriver::BinMXCAFDoc_ColorDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_ColorDriver::BinMXCAFDoc_ColorDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Color)->Name()) {
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_ColorDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_ColorDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_ColorToolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_ColorTool.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_ColorToolDriver::BinMXCAFDoc_ColorToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_ColorToolDriver::BinMXCAFDoc_ColorToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_ColorTool)->Name()) {
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_ColorToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_ColorToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_DatumDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_Array1OfReal.hxx>
//purpose :
//=======================================================================
BinMXCAFDoc_DatumDriver::BinMXCAFDoc_DatumDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Datum)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_DatumDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_DatumDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_DimTolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_Array1OfReal.hxx>
//purpose :
//=======================================================================
BinMXCAFDoc_DimTolDriver::BinMXCAFDoc_DimTolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_DimTol)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_DimTolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_DimTolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_DimTolToolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_DimTolTool.hxx>
//purpose :
//=======================================================================
BinMXCAFDoc_DimTolToolDriver::BinMXCAFDoc_DimTolToolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_DimTolTool)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_DimTolToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_DimTolToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_DimensionDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_Array1OfReal.hxx>
//function : Constructor
//purpose :
//=======================================================================
-BinMXCAFDoc_DimensionDriver::BinMXCAFDoc_DimensionDriver (const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_DimensionDriver::BinMXCAFDoc_DimensionDriver (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Dimension)->Name())
{
}
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_DimensionDriver (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_DimensionDriver (const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_DocumentToolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_DocumentTool.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_DocumentToolDriver::BinMXCAFDoc_DocumentToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_DocumentToolDriver::BinMXCAFDoc_DocumentToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_DocumentTool)->Name()) {
}
//purpose :
//=======================================================================
Standard_Boolean BinMXCAFDoc_DocumentToolDriver::Paste(const BinObjMgt_Persistent& /*theSource*/,
- const Handle(TDF_Attribute)& theTarget,
- BinObjMgt_RRelocationTable& /*theRelocTable*/) const
+ const Handle(TDF_Attribute)& theTarget,
+ BinObjMgt_RRelocationTable& /*theRelocTable*/) const
{
Handle(XCAFDoc_DocumentTool) T = Handle(XCAFDoc_DocumentTool)::DownCast(theTarget);
T->Init();
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_DocumentToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_DocumentToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_GeomToleranceDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_Array1OfReal.hxx>
//function : Constructor
//purpose :
//=======================================================================
-BinMXCAFDoc_GeomToleranceDriver::BinMXCAFDoc_GeomToleranceDriver (const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_GeomToleranceDriver::BinMXCAFDoc_GeomToleranceDriver (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_GeomTolerance)->Name())
{
}
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_GeomToleranceDriver (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_GeomToleranceDriver (const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_GraphNodeDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_GraphNode.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_GraphNodeDriver::BinMXCAFDoc_GraphNodeDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_GraphNodeDriver::BinMXCAFDoc_GraphNodeDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_GraphNode)->Name()) {
}
//purpose :
//=======================================================================
Standard_Boolean BinMXCAFDoc_GraphNodeDriver::Paste(const BinObjMgt_Persistent& theSource,
- const Handle(TDF_Attribute)& theTarget,
- BinObjMgt_RRelocationTable& theRelocTable) const
+ const Handle(TDF_Attribute)& theTarget,
+ BinObjMgt_RRelocationTable& theRelocTable) const
{
Handle(XCAFDoc_GraphNode) aT = Handle(XCAFDoc_GraphNode)::DownCast(theTarget);
Standard_Integer anID;
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_GraphNodeDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_GraphNodeDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_LayerToolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_LayerTool.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_LayerToolDriver::BinMXCAFDoc_LayerToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_LayerToolDriver::BinMXCAFDoc_LayerToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_LayerTool)->Name()) {
}
//purpose :
//=======================================================================
Standard_Boolean BinMXCAFDoc_LayerToolDriver::Paste(const BinObjMgt_Persistent& /*theSource*/,
- const Handle(TDF_Attribute)& /*theTarget*/,
- BinObjMgt_RRelocationTable& /*theRelocTable*/) const
+ const Handle(TDF_Attribute)& /*theTarget*/,
+ BinObjMgt_RRelocationTable& /*theRelocTable*/) const
{
return Standard_True;
}
//purpose :
//=======================================================================
void BinMXCAFDoc_LayerToolDriver::Paste(const Handle(TDF_Attribute)& /*theSource*/,
- BinObjMgt_Persistent& /*theTarget*/,
- BinObjMgt_SRelocationTable& /*theRelocTable*/) const
+ BinObjMgt_Persistent& /*theTarget*/,
+ BinObjMgt_SRelocationTable& /*theRelocTable*/) const
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_LayerToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_LayerToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_LocationDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
#include <BinTools_LocationSet.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <gp_Mat.hxx>
#include <gp_Trsf.hxx>
#include <gp_XYZ.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_LocationDriver::BinMXCAFDoc_LocationDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_LocationDriver::BinMXCAFDoc_LocationDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Location)->Name())
, myLocations(0) {
}
//purpose :
//=======================================================================
Standard_Boolean BinMXCAFDoc_LocationDriver::Paste(const BinObjMgt_Persistent& theSource,
- const Handle(TDF_Attribute)& theTarget,
- BinObjMgt_RRelocationTable& theRelocTable) const
+ const Handle(TDF_Attribute)& theTarget,
+ BinObjMgt_RRelocationTable& theRelocTable) const
{
Handle(XCAFDoc_Location) anAtt = Handle(XCAFDoc_Location)::DownCast(theTarget);
TopLoc_Location aLoc;
//purpose :
//=======================================================================
Standard_Boolean BinMXCAFDoc_LocationDriver::Translate(const BinObjMgt_Persistent& theSource,
- TopLoc_Location& theLoc,
- BinObjMgt_RRelocationTable& theMap) const
+ TopLoc_Location& theLoc,
+ BinObjMgt_RRelocationTable& theMap) const
{
Standard_Integer anId = 0;
theSource >> anId;
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
class TopLoc_Location;
public:
- Standard_EXPORT BinMXCAFDoc_LocationDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_LocationDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_MaterialDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TDF_Attribute.hxx>
//purpose :
//=======================================================================
BinMXCAFDoc_MaterialDriver::BinMXCAFDoc_MaterialDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Material)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_MaterialDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_MaterialDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_MaterialToolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_MaterialTool.hxx>
//purpose :
//=======================================================================
BinMXCAFDoc_MaterialToolDriver::BinMXCAFDoc_MaterialToolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_MaterialTool)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_MaterialToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_MaterialToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <BinMXCAFDoc_NoteBalloonDriver.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_NoteBalloonDriver::BinMXCAFDoc_NoteBalloonDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_NoteBalloonDriver::BinMXCAFDoc_NoteBalloonDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMXCAFDoc_NoteCommentDriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_NoteBalloon)->Name())
{
}
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_NoteBalloonDriver::BinMXCAFDoc_NoteBalloonDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+BinMXCAFDoc_NoteBalloonDriver::BinMXCAFDoc_NoteBalloonDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName)
: BinMXCAFDoc_NoteCommentDriver(theMsgDriver, theName)
{
{
public:
- Standard_EXPORT BinMXCAFDoc_NoteBalloonDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_NoteBalloonDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
protected:
- BinMXCAFDoc_NoteBalloonDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+ BinMXCAFDoc_NoteBalloonDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName);
};
// commercial license or contractual agreement.
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TColStd_HArray1OfByte.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_NoteBinDataDriver::BinMXCAFDoc_NoteBinDataDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_NoteBinDataDriver::BinMXCAFDoc_NoteBinDataDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMXCAFDoc_NoteDriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_NoteBinData)->Name())
{
}
//purpose :
//=======================================================================
void BinMXCAFDoc_NoteBinDataDriver::Paste(const Handle(TDF_Attribute)& theSource,
- BinObjMgt_Persistent& theTarget,
- BinObjMgt_SRelocationTable& theRelocTable) const
+ BinObjMgt_Persistent& theTarget,
+ BinObjMgt_SRelocationTable& theRelocTable) const
{
BinMXCAFDoc_NoteDriver::Paste(theSource, theTarget, theRelocTable);
{
public:
- Standard_EXPORT BinMXCAFDoc_NoteBinDataDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_NoteBinDataDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <BinMXCAFDoc_NoteCommentDriver.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_NoteCommentDriver::BinMXCAFDoc_NoteCommentDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_NoteCommentDriver::BinMXCAFDoc_NoteCommentDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMXCAFDoc_NoteDriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_NoteComment)->Name())
{
}
//purpose :
//=======================================================================
void BinMXCAFDoc_NoteCommentDriver::Paste(const Handle(TDF_Attribute)& theSource,
- BinObjMgt_Persistent& theTarget,
- BinObjMgt_SRelocationTable& theRelocTable) const
+ BinObjMgt_Persistent& theTarget,
+ BinObjMgt_SRelocationTable& theRelocTable) const
{
BinMXCAFDoc_NoteDriver::Paste(theSource, theTarget, theRelocTable);
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_NoteCommentDriver::BinMXCAFDoc_NoteCommentDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+BinMXCAFDoc_NoteCommentDriver::BinMXCAFDoc_NoteCommentDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName)
: BinMXCAFDoc_NoteDriver(theMsgDriver, theName)
{
{
public:
- Standard_EXPORT BinMXCAFDoc_NoteCommentDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_NoteCommentDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
protected:
- BinMXCAFDoc_NoteCommentDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+ BinMXCAFDoc_NoteCommentDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName);
};
// commercial license or contractual agreement.
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <BinMXCAFDoc_NoteDriver.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_NoteDriver::BinMXCAFDoc_NoteDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+BinMXCAFDoc_NoteDriver::BinMXCAFDoc_NoteDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName)
: BinMDF_ADriver(theMsgDriver, theName)
{
//purpose :
//=======================================================================
void BinMXCAFDoc_NoteDriver::Paste(const Handle(TDF_Attribute)& theSource,
- BinObjMgt_Persistent& theTarget,
- BinObjMgt_SRelocationTable& /*theRelocTable*/) const
+ BinObjMgt_Persistent& theTarget,
+ BinObjMgt_SRelocationTable& /*theRelocTable*/) const
{
Handle(XCAFDoc_Note) aNote = Handle(XCAFDoc_Note)::DownCast(theSource);
if (!aNote.IsNull())
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
protected:
- BinMXCAFDoc_NoteDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+ BinMXCAFDoc_NoteDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName);
};
// commercial license or contractual agreement.
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <BinMXCAFDoc_NotesToolDriver.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_NotesToolDriver::BinMXCAFDoc_NotesToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_NotesToolDriver::BinMXCAFDoc_NotesToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_NotesTool)->Name())
{
}
//purpose :
//=======================================================================
void BinMXCAFDoc_NotesToolDriver::Paste(const Handle(TDF_Attribute)& /*theSource*/,
- BinObjMgt_Persistent& /*theTarget*/,
- BinObjMgt_SRelocationTable& /*theRelocTable*/) const
+ BinObjMgt_Persistent& /*theTarget*/,
+ BinObjMgt_SRelocationTable& /*theRelocTable*/) const
{
}
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
{
public:
- Standard_EXPORT BinMXCAFDoc_NotesToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_NotesToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_ShapeToolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_ShapeTool.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_ShapeToolDriver::BinMXCAFDoc_ShapeToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_ShapeToolDriver::BinMXCAFDoc_ShapeToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_ShapeTool)->Name())
{
}
//purpose :
//=======================================================================
Standard_Boolean BinMXCAFDoc_ShapeToolDriver::Paste(const BinObjMgt_Persistent& /*theSource*/,
- const Handle(TDF_Attribute)& /*theTarget*/,
- BinObjMgt_RRelocationTable& /*theRelocTable*/) const
+ const Handle(TDF_Attribute)& /*theTarget*/,
+ BinObjMgt_RRelocationTable& /*theRelocTable*/) const
{
return Standard_True;
}
//purpose :
//=======================================================================
void BinMXCAFDoc_ShapeToolDriver::Paste(const Handle(TDF_Attribute)& /*theSource*/,
- BinObjMgt_Persistent& /*theTarget*/,
- BinObjMgt_SRelocationTable& /*theRelocTable*/) const
+ BinObjMgt_Persistent& /*theTarget*/,
+ BinObjMgt_SRelocationTable& /*theRelocTable*/) const
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_ShapeToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_ShapeToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_ViewDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_View.hxx>
//function : Constructor
//purpose :
//=======================================================================
-BinMXCAFDoc_ViewDriver::BinMXCAFDoc_ViewDriver (const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_ViewDriver::BinMXCAFDoc_ViewDriver (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_View)->Name())
{
}
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_ViewDriver (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_ViewDriver (const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_ViewToolDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_ViewTool.hxx>
//purpose :
//=======================================================================
BinMXCAFDoc_ViewToolDriver::BinMXCAFDoc_ViewToolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_ViewTool)->Name())
{
}
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_ViewToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_ViewToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinMXCAFDoc_VolumeDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_Volume.hxx>
//function :
//purpose :
//=======================================================================
-BinMXCAFDoc_VolumeDriver::BinMXCAFDoc_VolumeDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+BinMXCAFDoc_VolumeDriver::BinMXCAFDoc_VolumeDriver(const Handle(Message_Messenger)& theMsgDriver)
: BinMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_Volume)->Name()) {
}
//purpose :
//=======================================================================
Standard_Boolean BinMXCAFDoc_VolumeDriver::Paste(const BinObjMgt_Persistent& theSource,
- const Handle(TDF_Attribute)& theTarget,
- BinObjMgt_RRelocationTable& /*theRelocTable*/) const
+ const Handle(TDF_Attribute)& theTarget,
+ BinObjMgt_RRelocationTable& /*theRelocTable*/) const
{
Handle(XCAFDoc_Volume) anAtt = Handle(XCAFDoc_Volume)::DownCast(theTarget);
Standard_Real aVol;
//purpose :
//=======================================================================
void BinMXCAFDoc_VolumeDriver::Paste(const Handle(TDF_Attribute)& theSource,
- BinObjMgt_Persistent& theTarget,
- BinObjMgt_SRelocationTable& /*theRelocTable*/) const
+ BinObjMgt_Persistent& theTarget,
+ BinObjMgt_SRelocationTable& /*theRelocTable*/) const
{
Handle(XCAFDoc_Volume) anAtt = Handle(XCAFDoc_Volume)::DownCast(theSource);
theTarget << anAtt->Get();
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class BinObjMgt_Persistent;
public:
- Standard_EXPORT BinMXCAFDoc_VolumeDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT BinMXCAFDoc_VolumeDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
//purpose :
//=======================================================================
void BinTObjDrivers::AddDrivers (const Handle(BinMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& aMsgDrv)
+ const Handle(Message_Messenger)& aMsgDrv)
{
aDriverTable -> AddDriver (new BinTObjDrivers_ModelDriver (aMsgDrv));
aDriverTable -> AddDriver (new BinTObjDrivers_ObjectDriver (aMsgDrv));
#include <Standard_GUID.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class TDocStd_Application;
//! Class for registering storage/retrieval drivers for TObj Bin persistence
Standard_EXPORT static void AddDrivers
(const Handle(BinMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& aMsgDrv);
+ const Handle(Message_Messenger)& aMsgDrv);
};
Handle(BinMDF_ADriverTable)
BinTObjDrivers_DocumentRetrievalDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDrv)
+ (const Handle(Message_Messenger)& theMsgDrv)
{
// Standard drivers
Handle(BinMDF_ADriverTable) aTable = BinLDrivers::AttributeDrivers (theMsgDrv);
// Constructor
Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
public:
// Declaration of CASCADE RTTI
Handle(BinMDF_ADriverTable)
BinTObjDrivers_DocumentStorageDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDrv)
+ (const Handle(Message_Messenger)& theMsgDrv)
{
// Standard drivers
Handle(BinMDF_ADriverTable) aTable = BinLDrivers::AttributeDrivers (theMsgDrv);
// Constructor
Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
public:
// Declaration of CASCADE RTTI
// The original implementation Copyright: (C) RINA S.p.A
#include <BinTObjDrivers_IntSparseArrayDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <TDF_Attribute.hxx>
#include <BinObjMgt_Persistent.hxx>
#include <TObj_TIntSparseArray.hxx>
//=======================================================================
BinTObjDrivers_IntSparseArrayDriver::BinTObjDrivers_IntSparseArrayDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: BinMDF_ADriver( theMessageDriver, NULL)
{
}
public:
Standard_EXPORT BinTObjDrivers_IntSparseArrayDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinTObjDrivers_ModelDriver.hxx>
#include <BinObjMgt_Persistent.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_GUID.hxx>
#include <TDF_Attribute.hxx>
//=======================================================================
BinTObjDrivers_ModelDriver::BinTObjDrivers_ModelDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: BinMDF_ADriver( theMessageDriver, NULL)
{
}
if (aGUID != aCurrentModel->GetGUID())
{
- WriteMessage("TObj_TModel retrieval: wrong model GUID");
+ myMessageDriver->Send("TObj_TModel retrieval: wrong model GUID", Message_Fail);
return Standard_False;
}
public:
Standard_EXPORT BinTObjDrivers_ModelDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// The original implementation Copyright: (C) RINA S.p.A
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <BinObjMgt_Persistent.hxx>
#include <TDF_Tool.hxx>
//=======================================================================
BinTObjDrivers_ObjectDriver::BinTObjDrivers_ObjectDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: BinMDF_ADriver( theMessageDriver, NULL)
{
}
{
TCollection_AsciiString anEntry;
TDF_Tool::Entry (theTarget->Label(), anEntry);
- WriteMessage (TCollection_ExtendedString
- ("TObj_TObject retrieval: wrong object type name ") +
- aName + ", entry " + anEntry);
+ myMessageDriver->Send (TCollection_ExtendedString
+ ("TObj_TObject retrieval: wrong object type name ") +
+ aName + ", entry " + anEntry, Message_Fail);
TObj_Assistant::BindType(0);
return Standard_False;
}
public:
Standard_EXPORT BinTObjDrivers_ObjectDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinTObjDrivers_ReferenceDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <TDF_Attribute.hxx>
#include <TObj_TReference.hxx>
#include <BinObjMgt_Persistent.hxx>
//=======================================================================
BinTObjDrivers_ReferenceDriver::BinTObjDrivers_ReferenceDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: BinMDF_ADriver( theMessageDriver, NULL)
{
}
{
TCollection_AsciiString anEntry;
TDF_Tool::Entry (theTarget->Label(), anEntry);
- WriteMessage (TCollection_ExtendedString ("TObj_TReference retrieval: ")
- + "wrong model ID " + aName + ", entry " + anEntry);
+ myMessageDriver->Send (TCollection_ExtendedString ("TObj_TReference retrieval: ")
+ + "wrong model ID " + aName + ", entry " + anEntry, Message_Fail);
return Standard_False;
}
aDS = aModel->GetLabel().Data();
public:
Standard_EXPORT BinTObjDrivers_ReferenceDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinTObjDrivers_XYZDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <TDF_Attribute.hxx>
#include <BinObjMgt_Persistent.hxx>
#include <TObj_TXYZ.hxx>
//=======================================================================
BinTObjDrivers_XYZDriver::BinTObjDrivers_XYZDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: BinMDF_ADriver( theMessageDriver, NULL)
{
}
public:
Standard_EXPORT BinTObjDrivers_XYZDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <BinXCAFDrivers.hxx>
#include <BinXCAFDrivers_DocumentRetrievalDriver.hxx>
#include <BinXCAFDrivers_DocumentStorageDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Plugin_Macro.hxx>
#include <Standard_Failure.hxx>
#include <Standard_GUID.hxx>
//function :
//purpose :
//=======================================================================
-Handle(BinMDF_ADriverTable) BinXCAFDrivers::AttributeDrivers(const Handle(CDM_MessageDriver)& aMsgDrv) {
+Handle(BinMDF_ADriverTable) BinXCAFDrivers::AttributeDrivers(const Handle(Message_Messenger)& aMsgDrv) {
// Standard Drivers
Handle(BinMDF_ADriverTable) aTable = BinDrivers::AttributeDrivers(aMsgDrv);
class Standard_Transient;
class Standard_GUID;
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinXCAFDrivers_DocumentStorageDriver;
class BinXCAFDrivers_DocumentRetrievalDriver;
class TDocStd_Application;
Standard_EXPORT static void DefineFormat (const Handle(TDocStd_Application)& theApp);
//! Creates the table of drivers of types supported
- Standard_EXPORT static Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& MsgDrv);
+ Standard_EXPORT static Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& MsgDrv);
};
#endif // _BinXCAFDrivers_HeaderFile
#include <BinMDF_ADriverTable.hxx>
#include <BinXCAFDrivers.hxx>
#include <BinXCAFDrivers_DocumentRetrievalDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(BinXCAFDrivers_DocumentRetrievalDriver,BinDrivers_DocumentRetrievalDriver)
//function :
//purpose :
//=======================================================================
-Handle(BinMDF_ADriverTable) BinXCAFDrivers_DocumentRetrievalDriver::AttributeDrivers(const Handle(CDM_MessageDriver)& theMsgDriver) {
+Handle(BinMDF_ADriverTable) BinXCAFDrivers_DocumentRetrievalDriver::AttributeDrivers(const Handle(Message_Messenger)& theMsgDriver) {
return BinXCAFDrivers::AttributeDrivers (theMsgDriver);
}
#include <BinDrivers_DocumentRetrievalDriver.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinXCAFDrivers_DocumentRetrievalDriver;
//! Constructor
Standard_EXPORT BinXCAFDrivers_DocumentRetrievalDriver();
- Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
#include <BinMDF_ADriverTable.hxx>
#include <BinXCAFDrivers.hxx>
#include <BinXCAFDrivers_DocumentStorageDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
IMPLEMENT_STANDARD_RTTIEXT(BinXCAFDrivers_DocumentStorageDriver,BinDrivers_DocumentStorageDriver)
//function :
//purpose :
//=======================================================================
-Handle(BinMDF_ADriverTable) BinXCAFDrivers_DocumentStorageDriver::AttributeDrivers(const Handle(CDM_MessageDriver)& theMsgDriver) {
+Handle(BinMDF_ADriverTable) BinXCAFDrivers_DocumentStorageDriver::AttributeDrivers(const Handle(Message_Messenger)& theMsgDriver) {
return BinXCAFDrivers::AttributeDrivers (theMsgDriver);
}
#include <BinDrivers_DocumentStorageDriver.hxx>
class BinMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class BinXCAFDrivers_DocumentStorageDriver;
//! Constructor
Standard_EXPORT BinXCAFDrivers_DocumentStorageDriver();
- Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(BinMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
#include <CDM_Application.hxx>
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
#include <CDM_MetaData.hxx>
-#include <CDM_NullMessageDriver.hxx>
#include <CDM_Reference.hxx>
#include <Resource_Manager.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
+#include <Message.hxx>
+#include <Message_Messenger.hxx>
IMPLEMENT_STANDARD_RTTIEXT(CDM_Application,Standard_Transient)
//purpose :
//=======================================================================
-Handle(CDM_MessageDriver) CDM_Application::MessageDriver()
+Handle(Message_Messenger) CDM_Application::MessageDriver()
{
- static Handle(CDM_NullMessageDriver) theMessageDriver
- =new CDM_NullMessageDriver;
- return theMessageDriver;
+ static Handle(Message_Messenger) theMessenger;
+ if(theMessenger.IsNull())
+ theMessenger = Message::DefaultMessenger();
+ return theMessenger;
}
//=======================================================================
void CDM_Application::Write(const Standard_ExtString aString)
{
- MessageDriver()->Write(aString);
+ MessageDriver()->Send(aString);
}
//=======================================================================
class CDM_MetaData;
class CDM_Document;
class Resource_Manager;
-class CDM_MessageDriver;
-
+class Message_Messenger;
class CDM_Application;
DEFINE_STANDARD_HANDLE(CDM_Application, Standard_Transient)
//! used to search for Format.Retrieval resource items.
Standard_EXPORT virtual Handle(Resource_Manager) Resources() = 0;
- //! By default returns a NullMessageDriver;
- Standard_EXPORT virtual Handle(CDM_MessageDriver) MessageDriver();
+ //! Returns default messenger;
+ Standard_EXPORT virtual Handle(Message_Messenger) MessageDriver();
//! this method is called before the update of a document.
//! By default, writes in MessageDriver().
+++ /dev/null
-// Created on: 2001-08-30
-// Created by: Alexander GRIGORIEV
-// Copyright (c) 2001-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-
-#include <CDM_COutMessageDriver.hxx>
-#include <Standard_PCharacter.hxx>
-#include <Standard_Type.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(CDM_COutMessageDriver,CDM_MessageDriver)
-
-//=======================================================================
-//function : Write
-//purpose :
-//=======================================================================
-void CDM_COutMessageDriver::Write (const Standard_ExtString aString)
-{
- // Find the length of the input string
- Standard_ExtCharacter aChar = aString[0];
- Standard_Integer aLength = 0;
- while (aChar) {
- if (IsAnAscii(aChar) == Standard_False)
- return;
- aChar = aString [++aLength];
- }
-
- // Copy the input string to ASCII buffer
- Standard_PCharacter anAsciiString = new Standard_Character [aLength+2];
- Standard_Integer anI = 0;
- while (anI < aLength) {
- anAsciiString[anI] = Standard_Character (aString[anI]);
- ++ anI;
- }
- anAsciiString[anI+0] = '\n';
- anAsciiString[anI+1] = '\0';
-
- // Output
- cout << anAsciiString << flush;
- delete [] anAsciiString;
-}
+++ /dev/null
-// Created on: 2001-08-30
-// Created by: Alexander GRIGORIEV
-// Copyright (c) 2001-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef _CDM_COutMessageDriver_HeaderFile
-#define _CDM_COutMessageDriver_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <CDM_MessageDriver.hxx>
-#include <Standard_ExtString.hxx>
-
-
-class CDM_COutMessageDriver;
-DEFINE_STANDARD_HANDLE(CDM_COutMessageDriver, CDM_MessageDriver)
-
-//! aMessageDriver for output to COUT (only ASCII strings)
-class CDM_COutMessageDriver : public CDM_MessageDriver
-{
-
-public:
-
-
- Standard_EXPORT void Write (const Standard_ExtString aString) Standard_OVERRIDE;
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(CDM_COutMessageDriver,CDM_MessageDriver)
-
-protected:
-
-
-
-
-private:
-
-
-
-
-};
-
-
-
-
-
-
-
-#endif // _CDM_COutMessageDriver_HeaderFile
+++ /dev/null
-// Created on: 1998-10-29
-// Created by: Mister rmi
-// Copyright (c) 1998-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-
-#include <CDM_MessageDriver.hxx>
-#include <Standard_Type.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(CDM_MessageDriver,Standard_Transient)
\ No newline at end of file
+++ /dev/null
-// Created on: 1998-10-29
-// Created by: Jean-Louis Frenkel
-// Copyright (c) 1998-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef _CDM_MessageDriver_HeaderFile
-#define _CDM_MessageDriver_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Transient.hxx>
-#include <Standard_ExtString.hxx>
-
-
-class CDM_MessageDriver;
-DEFINE_STANDARD_HANDLE(CDM_MessageDriver, Standard_Transient)
-
-
-class CDM_MessageDriver : public Standard_Transient
-{
-
-public:
-
-
- Standard_EXPORT virtual void Write (const Standard_ExtString aString) = 0;
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(CDM_MessageDriver,Standard_Transient)
-
-protected:
-
-
-
-
-private:
-
-
-
-
-};
-
-
-
-
-
-
-
-#endif // _CDM_MessageDriver_HeaderFile
+++ /dev/null
-// Created on: 1998-10-29
-// Created by: Mister rmi
-// Copyright (c) 1998-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-
-#include <CDM_NullMessageDriver.hxx>
-#include <Standard_Type.hxx>
-#include <TCollection_ExtendedString.hxx>
-
-IMPLEMENT_STANDARD_RTTIEXT(CDM_NullMessageDriver,CDM_MessageDriver)
-
-CDM_NullMessageDriver::CDM_NullMessageDriver() {}
-
-void CDM_NullMessageDriver::Write(const Standard_ExtString /*aString*/) {
-}
+++ /dev/null
-// Created on: 1998-10-29
-// Created by: Jean-Louis Frenkel
-// Copyright (c) 1998-1999 Matra Datavision
-// Copyright (c) 1999-2014 OPEN CASCADE SAS
-//
-// This file is part of Open CASCADE Technology software library.
-//
-// This library is free software; you can redistribute it and/or modify it under
-// the terms of the GNU Lesser General Public License version 2.1 as published
-// by the Free Software Foundation, with special exception defined in the file
-// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-// distribution for complete text of the license and disclaimer of any warranty.
-//
-// Alternatively, this file may be used under the terms of Open CASCADE
-// commercial license or contractual agreement.
-
-#ifndef _CDM_NullMessageDriver_HeaderFile
-#define _CDM_NullMessageDriver_HeaderFile
-
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <CDM_MessageDriver.hxx>
-#include <Standard_ExtString.hxx>
-
-
-class CDM_NullMessageDriver;
-DEFINE_STANDARD_HANDLE(CDM_NullMessageDriver, CDM_MessageDriver)
-
-//! a MessageDriver that writes nowhere.
-class CDM_NullMessageDriver : public CDM_MessageDriver
-{
-
-public:
-
-
- Standard_EXPORT CDM_NullMessageDriver();
-
- Standard_EXPORT void Write (const Standard_ExtString aString) Standard_OVERRIDE;
-
-
-
-
- DEFINE_STANDARD_RTTIEXT(CDM_NullMessageDriver,CDM_MessageDriver)
-
-protected:
-
-
-
-
-private:
-
-
-
-
-};
-
-
-
-
-
-
-
-#endif // _CDM_NullMessageDriver_HeaderFile
CDM_Application.cxx
CDM_Application.hxx
CDM_CanCloseStatus.hxx
-CDM_COutMessageDriver.cxx
-CDM_COutMessageDriver.hxx
CDM_DataMapIteratorOfMetaDataLookUpTable.hxx
CDM_DataMapIteratorOfPresentationDirectory.hxx
CDM_Document.cxx
CDM_ListOfReferences.hxx
CDM_MapIteratorOfMapOfDocument.hxx
CDM_MapOfDocument.hxx
-CDM_MessageDriver.cxx
-CDM_MessageDriver.hxx
CDM_MetaData.cxx
CDM_MetaData.hxx
CDM_MetaDataLookUpTable.hxx
CDM_NamesDirectory.hxx
-CDM_NullMessageDriver.cxx
-CDM_NullMessageDriver.hxx
CDM_PresentationDirectory.hxx
CDM_Reference.cxx
CDM_Reference.hxx
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
#include <PCDM.hxx>
#include <PCDM_DOMHeaderParser.hxx>
#include <PCDM_ReadWriter.hxx>
class Storage_Data;
class CDM_Document;
class TCollection_ExtendedString;
-class CDM_MessageDriver;
+class Message_Messenger;
class Storage_BaseDriver;
Standard_EXPORT virtual void WriteVersion (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument) const = 0;
- Standard_EXPORT virtual Standard_Integer ReadReferenceCounter (const TCollection_ExtendedString& theFileName, const Handle(CDM_MessageDriver)& theMsgDriver) const = 0;
+ Standard_EXPORT virtual Standard_Integer ReadReferenceCounter (const TCollection_ExtendedString& theFileName, const Handle(Message_Messenger)& theMsgDriver) const = 0;
- Standard_EXPORT virtual void ReadReferences (const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(CDM_MessageDriver)& theMsgDriver) const = 0;
+ Standard_EXPORT virtual void ReadReferences (const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(Message_Messenger)& theMsgDriver) const = 0;
- Standard_EXPORT virtual void ReadExtensions (const TCollection_ExtendedString& aFileName, TColStd_SequenceOfExtendedString& theExtensions, const Handle(CDM_MessageDriver)& theMsgDriver) const = 0;
+ Standard_EXPORT virtual void ReadExtensions (const TCollection_ExtendedString& aFileName, TColStd_SequenceOfExtendedString& theExtensions, const Handle(Message_Messenger)& theMsgDriver) const = 0;
- Standard_EXPORT virtual Standard_Integer ReadDocumentVersion (const TCollection_ExtendedString& aFileName, const Handle(CDM_MessageDriver)& theMsgDriver) const = 0;
+ Standard_EXPORT virtual Standard_Integer ReadDocumentVersion (const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const = 0;
Standard_EXPORT static void Open (Storage_BaseDriver& aDriver, const TCollection_ExtendedString& aFileName, const Storage_OpenMode anOpenMode);
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
#include <CDM_MetaData.hxx>
#include <CDM_ReferenceIterator.hxx>
#include <OSD_Path.hxx>
#include <PCDM_ReadWriter_1.hxx>
#include <PCDM_Reference.hxx>
#include <PCDM_TypeOfFileDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_Type.hxx>
#include <Storage_Data.hxx>
//purpose :
//=======================================================================
-Standard_Integer PCDM_ReadWriter_1::ReadReferenceCounter(const TCollection_ExtendedString& aFileName, const Handle(CDM_MessageDriver)& theMsgDriver) const {
+Standard_Integer PCDM_ReadWriter_1::ReadReferenceCounter(const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const {
static Standard_Integer theReferencesCounter ;
theReferencesCounter=0;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("could not read the reference counter in ").Cat(aFileName).Cat("\0");
if(!theMsgDriver.IsNull())
- theMsgDriver->Write(aMsg.ToExtString());
+ theMsgDriver->Send(aMsg.ToExtString());
}
}
}
//purpose :
//=======================================================================
-void PCDM_ReadWriter_1::ReadReferences(const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(CDM_MessageDriver)& theMsgDriver) const {
+void PCDM_ReadWriter_1::ReadReferences(const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(Message_Messenger)& theMsgDriver) const {
TColStd_SequenceOfExtendedString ReadReferences;
// cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("reference found; ReferenceIdentifier: ").Cat(theReferenceIdentifier).Cat("; File:").Cat(thePath).Cat(", version:").Cat(theDocumentVersion).Cat("\0");
- theMsgDriver->Write(aMsg.ToExtString());
+ theMsgDriver->Send(aMsg.ToExtString());
}
TCollection_ExtendedString aPathW(thePath);
theReferences.Append(PCDM_Reference (theReferenceIdentifier,aPathW,theDocumentVersion));
//purpose :
//=======================================================================
-void PCDM_ReadWriter_1::ReadExtensions(const TCollection_ExtendedString& aFileName, TColStd_SequenceOfExtendedString& theExtensions, const Handle(CDM_MessageDriver)& theMsgDriver) const {
+void PCDM_ReadWriter_1::ReadExtensions(const TCollection_ExtendedString& aFileName, TColStd_SequenceOfExtendedString& theExtensions, const Handle(Message_Messenger)& theMsgDriver) const {
ReadUserInfo(aFileName,START_EXT,END_EXT,theExtensions, theMsgDriver);
}
const TCollection_AsciiString& Start,
const TCollection_AsciiString& End,
TColStd_SequenceOfExtendedString& theUserInfo,
- const Handle(CDM_MessageDriver)&) {
+ const Handle(Message_Messenger)&) {
static Standard_Integer i ;
PCDM_BaseDriverPointer theFileDriver;
//purpose :
//=======================================================================
-Standard_Integer PCDM_ReadWriter_1::ReadDocumentVersion(const TCollection_ExtendedString& aFileName, const Handle(CDM_MessageDriver)& theMsgDriver) const {
+Standard_Integer PCDM_ReadWriter_1::ReadDocumentVersion(const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const {
static Standard_Integer theVersion ;
theVersion=-1;
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("could not read the version in ").Cat(aFileName).Cat("\0");
if(!theMsgDriver.IsNull())
- theMsgDriver->Write(aMsg.ToExtString());
+ theMsgDriver->Send(aMsg.ToExtString());
}
}
class Storage_Data;
class CDM_Document;
class TCollection_ExtendedString;
-class CDM_MessageDriver;
+class Message_Messenger;
class PCDM_ReadWriter_1;
Standard_EXPORT void WriteVersion (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument) const Standard_OVERRIDE;
- Standard_EXPORT Standard_Integer ReadReferenceCounter (const TCollection_ExtendedString& aFileName, const Handle(CDM_MessageDriver)& theMsgDriver) const Standard_OVERRIDE;
+ Standard_EXPORT Standard_Integer ReadReferenceCounter (const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
- Standard_EXPORT void ReadReferences (const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(CDM_MessageDriver)& theMsgDriver) const Standard_OVERRIDE;
+ Standard_EXPORT void ReadReferences (const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
- Standard_EXPORT void ReadExtensions (const TCollection_ExtendedString& aFileName, TColStd_SequenceOfExtendedString& theExtensions, const Handle(CDM_MessageDriver)& theMsgDriver) const Standard_OVERRIDE;
+ Standard_EXPORT void ReadExtensions (const TCollection_ExtendedString& aFileName, TColStd_SequenceOfExtendedString& theExtensions, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
- Standard_EXPORT Standard_Integer ReadDocumentVersion (const TCollection_ExtendedString& aFileName, const Handle(CDM_MessageDriver)& theMsgDriver) const Standard_OVERRIDE;
+ Standard_EXPORT Standard_Integer ReadDocumentVersion (const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
private:
- Standard_EXPORT static void ReadUserInfo (const TCollection_ExtendedString& aFileName, const TCollection_AsciiString& Start, const TCollection_AsciiString& End, TColStd_SequenceOfExtendedString& theUserInfo, const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT static void ReadUserInfo (const TCollection_ExtendedString& aFileName, const TCollection_AsciiString& Start, const TCollection_AsciiString& End, TColStd_SequenceOfExtendedString& theUserInfo, const Handle(Message_Messenger)& theMsgDriver);
#include <CDM_Application.hxx>
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <CDM_MetaData.hxx>
#include <OSD_Path.hxx>
#include <PCDM_Reference.hxx>
//purpose :
//=======================================================================
-PCDM_ReferenceIterator::PCDM_ReferenceIterator (const Handle(CDM_MessageDriver)& theMsgDriver) :
+PCDM_ReferenceIterator::PCDM_ReferenceIterator (const Handle(Message_Messenger)& theMsgDriver) :
myIterator(0)
{
myMessageDriver = theMsgDriver;
#include <Standard_Integer.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Boolean.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class CDM_Document;
class CDM_MetaData;
class CDM_Application;
//! Warning! The constructor does not initialization.
- Standard_EXPORT PCDM_ReferenceIterator(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT PCDM_ReferenceIterator(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT void LoadReferences (const Handle(CDM_Document)& aDocument, const Handle(CDM_MetaData)& aMetaData, const Handle(CDM_Application)& anApplication, const Standard_Boolean UseStorageConfiguration);
PCDM_SequenceOfReference myReferences;
Standard_Integer myIterator;
- Handle(CDM_MessageDriver) myMessageDriver;
+ Handle(Message_Messenger) myMessageDriver;
};
#include <CDM_Application.hxx>
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <CDM_MetaData.hxx>
#include <PCDM.hxx>
#include <PCDM_BaseDriverPointer.hxx>
IMPLEMENT_STANDARD_RTTIEXT(PCDM_RetrievalDriver,PCDM_Reader)
-void PCDM_RetrievalDriver::References(const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(CDM_MessageDriver)& theMsgDriver)
+void PCDM_RetrievalDriver::References(const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(Message_Messenger)& theMsgDriver)
{ PCDM_ReadWriter::Reader(aFileName)->ReadReferences(aFileName, theReferences, theMsgDriver);}
-Standard_Integer PCDM_RetrievalDriver::DocumentVersion(const TCollection_ExtendedString& aFileName, const Handle(CDM_MessageDriver)& theMsgDriver)
+Standard_Integer PCDM_RetrievalDriver::DocumentVersion(const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver)
{ return PCDM_ReadWriter::Reader(aFileName)->ReadDocumentVersion(aFileName, theMsgDriver); }
-Standard_Integer PCDM_RetrievalDriver::ReferenceCounter(const TCollection_ExtendedString& aFileName, const Handle(CDM_MessageDriver)& theMsgDriver)
+Standard_Integer PCDM_RetrievalDriver::ReferenceCounter(const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver)
{ return PCDM_ReadWriter::Reader(aFileName)->ReadReferenceCounter(aFileName, theMsgDriver); }
void PCDM_RetrievalDriver::SetFormat (const TCollection_ExtendedString& aformat)
#include <PCDM_SequenceOfReference.hxx>
class CDM_MetaData;
-class CDM_MessageDriver;
+class Message_Messenger;
class TCollection_AsciiString;
class TCollection_ExtendedString;
public:
Standard_EXPORT static Standard_Integer DocumentVersion (
const TCollection_ExtendedString& theFileName,
- const Handle(CDM_MessageDriver)& theMsgDriver);
+ const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT static Standard_Integer ReferenceCounter (
const TCollection_ExtendedString& theFileName,
- const Handle(CDM_MessageDriver)& theMsgDriver);
+ const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT void SetFormat (const TCollection_ExtendedString& aformat);
Standard_EXPORT static void References (
const TCollection_ExtendedString& theFileName,
PCDM_SequenceOfReference& theReferences,
- const Handle(CDM_MessageDriver)& theMsgDriver);
+ const Handle(Message_Messenger)& theMsgDriver);
TCollection_ExtendedString myFormat;
};
#include <CDF_DirectoryIterator.hxx>
#include <CDF_Session.hxx>
#include <CDF_Store.hxx>
-#include <CDM_COutMessageDriver.hxx>
+#include <Message_Messenger.hxx>
+#include <Message_PrinterOStream.hxx>
#include <PCDM_RetrievalDriver.hxx>
#include <PCDM_StorageDriver.hxx>
#include <Plugin.hxx>
//purpose :
//=======================================================================
TDocStd_Application::TDocStd_Application()
- : myIsDriverLoaded (Standard_True)
+ : myIsDriverLoaded (Standard_True)
{
- myMessageDriver = new CDM_COutMessageDriver;
-
+ myMessageDriver = CDM_Application::MessageDriver();
Handle(CDF_Session) S;
if (!CDF_Session::Exists()) S = new CDF_Session();
else S = CDF_Session::CurrentSession();
//function : MessageDriver
//purpose :
//=======================================================================
-Handle(CDM_MessageDriver) TDocStd_Application::MessageDriver()
+Handle(Message_Messenger) TDocStd_Application::MessageDriver()
{
return myMessageDriver;
}
// aMsg << Standard_Failure::Caught() << endl;
// cout << "TDocStd_Application::Open(): " << aMsg.rdbuf()->str() << endl;
TCollection_ExtendedString aString (anException.GetMessageString());
- MessageDriver()->Write(aString.ToExtString());
+ MessageDriver()->Send(aString.ToExtString(), Message_Fail);
}
}
status = GetRetrieveStatus();
if (!MessageDriver().IsNull())
{
TCollection_ExtendedString aFailureMessage (anException.GetMessageString());
- MessageDriver()->Write (aFailureMessage.ToExtString());
+ MessageDriver()->Send (aFailureMessage.ToExtString(), Message_Fail);
}
}
aMsg += directory;
aMsg += " does not exist";
if(!MessageDriver().IsNull())
- MessageDriver()->Write(aMsg.ToExtString());
+ MessageDriver()->Send(aMsg.ToExtString(), Message_Fail);
return storer.StoreStatus(); //CDF_SS_Failure;
}
storer.SetName (file);
catch (Standard_Failure const& anException) {
if (!MessageDriver().IsNull()) {
TCollection_ExtendedString aString (anException.GetMessageString());
- MessageDriver()->Write(aString.ToExtString());
+ MessageDriver()->Send(aString.ToExtString(), Message_Fail);
}
}
if(storer.StoreStatus() == PCDM_SS_OK)
if (!MessageDriver().IsNull())
{
TCollection_ExtendedString aString(anException.GetMessageString());
- MessageDriver()->Write(aString.ToExtString());
+ MessageDriver()->Send(aString.ToExtString(), Message_Fail);
}
}
return PCDM_SS_Failure;
catch (Standard_Failure const& anException) {
if (!MessageDriver().IsNull()) {
TCollection_ExtendedString aString (anException.GetMessageString());
- MessageDriver()->Write(aString.ToExtString());
+ MessageDriver()->Send(aString.ToExtString(), Message_Fail);
}
}
if(storer.StoreStatus() == PCDM_SS_OK)
} else {
if(!MessageDriver().IsNull()) {
TCollection_ExtendedString aMsg("Document has not been saved yet");
- MessageDriver()->Write(aMsg.ToExtString());
+ MessageDriver()->Send(aMsg.ToExtString(), Message_Fail);
}
status = PCDM_SS_Failure;
}
//=======================================================================
PCDM_StoreStatus TDocStd_Application::SaveAs(const Handle(TDocStd_Document)& D,
- const TCollection_ExtendedString& path,
- TCollection_ExtendedString& theStatusMessage)
+ const TCollection_ExtendedString& path,
+ TCollection_ExtendedString& theStatusMessage)
{
TDocStd_PathParser tool (path);
PCDM_StoreStatus aStatus = PCDM_SS_Failure;
catch (Standard_Failure const& anException) {
if (!MessageDriver().IsNull()) {
TCollection_ExtendedString aString (anException.GetMessageString());
- MessageDriver()->Write(aString.ToExtString());
+ MessageDriver()->Send(aString.ToExtString(), Message_Fail);
}
}
if(storer.StoreStatus() == PCDM_SS_OK)
if (!MessageDriver().IsNull())
{
TCollection_ExtendedString aString(anException.GetMessageString());
- MessageDriver()->Write(aString.ToExtString());
+ MessageDriver()->Send(aString.ToExtString(), Message_Fail);
}
}
return PCDM_SS_Failure;
//=======================================================================
PCDM_StoreStatus TDocStd_Application::Save (const Handle(TDocStd_Document)& D,
- TCollection_ExtendedString& theStatusMessage)
+ TCollection_ExtendedString& theStatusMessage)
{
PCDM_StoreStatus status = PCDM_SS_OK;
if (D->IsSaved()) {
catch (Standard_Failure const& anException) {
if (!MessageDriver().IsNull()) {
TCollection_ExtendedString aString (anException.GetMessageString());
- MessageDriver()->Write(aString.ToExtString());
+ MessageDriver()->Send(aString.ToExtString(), Message_Fail);
}
}
if(storer.StoreStatus() == PCDM_SS_OK)
#include <Standard_Boolean.hxx>
#include <CDF_Application.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_CString.hxx>
#include <Standard_Integer.hxx>
#include <Standard_IStream.hxx>
//! - Initialization of document views.
//! Note:
//! If a client needs detailed information concerning
-//! the events during the Open/Store operation, MessageDriver
-//! inherited from CDM_MessageDriver of the
-//! corresponding application has to be implemented.
-//! If the MessageDriver is not defined all messages
-//! will be (by default) directed to
-//! CDM_NullMessageDriver and will be lost.
+//! the events during the Open/Store operation, a MessageDriver
+//! based on Message_PrinterOStream may be used. In case of need client
+//! can implement his own version inheriting from Message_Printer class
+//! and add it to the Messanger.
+//! Also the trace level of messages can be tuned by setting trace level (SetTraceLevel (Gravity )) for the used Printer.
+//! By default, trace level is Message_Info, so that all messages are output.
+
class TDocStd_Application : public CDF_Application
{
Standard_EXPORT Standard_Boolean IsDriverLoaded() const;
//! Redefines message driver, by default outputs to cout.
- Standard_EXPORT virtual Handle(CDM_MessageDriver) MessageDriver() Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(Message_Messenger) MessageDriver() Standard_OVERRIDE;
//! Returns resource manager defining supported persistent formats.
//!
DEFINE_STANDARD_RTTIEXT(TDocStd_Application,CDF_Application)
protected:
- Handle(CDM_MessageDriver) myMessageDriver;
+ Handle(Message_Messenger) myMessageDriver;
Handle(Resource_Manager) myResources;
Standard_Boolean myIsDriverLoaded;
};
#include <Standard_ErrorHandler.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TColStd_SequenceOfExtendedString.hxx>
-#include <CDM_COutMessageDriver.hxx>
#include <Message_Msg.hxx>
#include <Message_MsgFile.hxx>
#include <Resource_Manager.hxx>
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Plugin_Macro.hxx>
#include <Standard_GUID.hxx>
#include <TDocStd_Application.hxx>
//purpose :
//=======================================================================
Handle(XmlMDF_ADriverTable) XmlDrivers::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
Handle(XmlMDF_ADriverTable) aTable = new XmlMDF_ADriverTable();
//
class Standard_Transient;
class Standard_GUID;
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlDrivers_DocumentStorageDriver;
class XmlDrivers_DocumentRetrievalDriver;
class TDocStd_Application;
//! in the specified application
Standard_EXPORT static void DefineFormat (const Handle(TDocStd_Application)& theApp);
- Standard_EXPORT static Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT static Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver);
};
#endif // _XmlDrivers_HeaderFile
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TNaming_NamedShape.hxx>
#include <XmlDrivers.hxx>
//purpose :
//=======================================================================
Handle(XmlMDF_ADriverTable) XmlDrivers_DocumentRetrievalDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
return XmlDrivers::AttributeDrivers (theMessageDriver);
}
//=======================================================================
Handle(XmlMDF_ADriver) XmlDrivers_DocumentRetrievalDriver::ReadShapeSection(
const XmlObjMgt_Element& theElement,
- const Handle(CDM_MessageDriver)& theMsgDriver)
+ const Handle(Message_Messenger)& theMsgDriver)
{
if (myDrivers.IsNull()) myDrivers = AttributeDrivers (theMsgDriver);
Handle(XmlMDF_ADriver) aDriver;
#include <XmlObjMgt_Element.hxx>
#include <Standard_Integer.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMDF_ADriver;
Standard_EXPORT XmlDrivers_DocumentRetrievalDriver();
- Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
- Standard_EXPORT virtual Handle(XmlMDF_ADriver) ReadShapeSection (const XmlObjMgt_Element& thePDoc, const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(XmlMDF_ADriver) ReadShapeSection (const XmlObjMgt_Element& thePDoc, const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
Standard_EXPORT virtual void ShapeSetCleaning (const Handle(XmlMDF_ADriver)& theDriver) Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <TNaming_NamedShape.hxx>
//purpose :
//=======================================================================
Handle(XmlMDF_ADriverTable) XmlDrivers_DocumentStorageDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
return XmlDrivers::AttributeDrivers (theMessageDriver);
}
#include <XmlObjMgt_Element.hxx>
class TCollection_ExtendedString;
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlDrivers_DocumentStorageDriver;
Standard_EXPORT XmlDrivers_DocumentStorageDriver(const TCollection_ExtendedString& theCopyright);
- Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
Standard_EXPORT virtual Standard_Boolean WriteShapeSection (XmlObjMgt_Element& thePDoc) Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Plugin_Macro.hxx>
#include <Standard_GUID.hxx>
#include <TDocStd_Application.hxx>
//purpose :
//=======================================================================
Handle(XmlMDF_ADriverTable) XmlLDrivers::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
Handle(XmlMDF_ADriverTable) aTable = new XmlMDF_ADriverTable();
//
class Standard_GUID;
class TCollection_AsciiString;
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlLDrivers_DocumentStorageDriver;
class XmlLDrivers_DocumentRetrievalDriver;
class XmlLDrivers_NamespaceDef;
//! in the specified application
Standard_EXPORT static void DefineFormat (const Handle(TDocStd_Application)& theApp);
- Standard_EXPORT static Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT static Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT static int StorageVersion();
Standard_EXPORT static void SetStorageVersion (const int version);
#include <CDM_Application.hxx>
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <CDM_MetaData.hxx>
#include <LDOM_DocumentType.hxx>
#include <LDOM_LDOMImplementation.hxx>
//#define TAKE_TIMES
static void take_time (const Standard_Integer, const char *,
- const Handle(CDM_MessageDriver)&)
+ const Handle(Message_Messenger)&)
#ifdef TAKE_TIMES
;
#else
TCollection_ExtendedString aMsg = TCollection_ExtendedString("Error: the file ") +
theFileName + " cannot be opened for reading";
- theApplication->MessageDriver()->Write (aMsg.ToExtString());
+ theApplication->MessageDriver()->Send (aMsg.ToExtString(), Message_Fail);
throw Standard_Failure("File cannot be opened for reading");
}
}
const Handle(CDM_Document)& theNewDocument,
const Handle(CDM_Application)& theApplication)
{
- Handle(CDM_MessageDriver) aMessageDriver = theApplication -> MessageDriver();
+ Handle(Message_Messenger) aMessageDriver = theApplication -> MessageDriver();
::take_time (~0, " +++++ Start RETRIEVE procedures ++++++", aMessageDriver);
// 1. Read DOM_Document from file
const Handle(CDM_Document)& theNewDocument,
const Handle(CDM_Application)& theApplication)
{
- const Handle(CDM_MessageDriver) aMsgDriver =
+ const Handle(Message_Messenger) aMsgDriver =
theApplication -> MessageDriver();
// 1. Read info // to be done
TCollection_AsciiString anAbsoluteDirectory = GetDirFromFile(myFileName);
TCollection_ExtendedString ("Cannot retrieve the current Document version"
" attribute as \"") + aDocVerStr + "\"";
if(!aMsgDriver.IsNull())
- aMsgDriver->Write(aMsg.ToExtString());
+ aMsgDriver->Send(aMsg.ToExtString(), Message_Fail);
}
// oan: OCC22305 - check a document verison and if it's greater than
XmlLDrivers::StorageVersion();
myReaderStatus = PCDM_RS_NoVersion;
if(!aMsgDriver.IsNull())
- aMsgDriver->Write(aMsg.ToExtString());
+ aMsgDriver->Send(aMsg.ToExtString(), Message_Fail);
return;
}
TCollection_ExtendedString aMsg("Warning: ");
aMsg = aMsg.Cat("could not read the reference counter").Cat("\0");
if(!aMsgDriver.IsNull())
- aMsgDriver->Write(aMsg.ToExtString());
+ aMsgDriver->Send(aMsg.ToExtString(), Message_Warning);
}
}
else if (anInfo.Search(MODIFICATION_COUNTER) != -1) {
catch (Standard_Failure) {
TCollection_ExtendedString aMsg("Warning: could not read the modification counter\0");
if(!aMsgDriver.IsNull())
- aMsgDriver->Write(aMsg.ToExtString());
+ aMsgDriver->Send(aMsg.ToExtString(), Message_Warning);
}
}
}
if(!aMsgDriver.IsNull()) {
// cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
- TCollection_ExtendedString aMsg("Warning: ");
- aMsg = aMsg.Cat("reference found; ReferenceIdentifier: ").Cat(aRefId).Cat("; File:").Cat(aPath).Cat(", version:").Cat(aDocumentVersion).Cat("\0");
- aMsgDriver->Write(aMsg.ToExtString());
+ TCollection_ExtendedString aMsg("Warning: ");
+ aMsg = aMsg.Cat("reference found; ReferenceIdentifier: ").Cat(aRefId).Cat("; File:").Cat(aPath).Cat(", version:").Cat(aDocumentVersion).Cat("\0");
+ aMsgDriver->Send(aMsg.ToExtString(), Message_Warning);
}
// Add new ref!
/////////////
OCC_CATCH_SIGNALS
#ifdef OCCT_DEBUG
TCollection_ExtendedString aMessage ("PasteDocument");
- aMsgDriver -> Write (aMessage.ToExtString());
+ aMsgDriver ->Send (aMessage.ToExtString(), Message_Trace);
#endif
if (!MakeDocument(theElement, theNewDocument))
myReaderStatus = PCDM_RS_MakeFailure;
catch (Standard_Failure const& anException)
{
TCollection_ExtendedString anErrorString (anException.GetMessageString());
- aMsgDriver -> Write (anErrorString.ToExtString());
+ aMsgDriver ->Send (anErrorString.ToExtString(), Message_Fail);
}
// Wipe off the shapes written to the <shapes> section
//purpose :
//=======================================================================
Handle(XmlMDF_ADriverTable) XmlLDrivers_DocumentRetrievalDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
return XmlLDrivers::AttributeDrivers (theMessageDriver);
}
extern struct timeb tmbuf0;
static void take_time (const Standard_Integer isReset, const char * aHeader,
- const Handle(CDM_MessageDriver)& aMessageDriver)
+ const Handle(Message_Messenger)& aMessageDriver)
{
struct timeb tmbuf;
ftime (&tmbuf);
//=======================================================================
Handle(XmlMDF_ADriver) XmlLDrivers_DocumentRetrievalDriver::ReadShapeSection(
const XmlObjMgt_Element& /*theElement*/,
- const Handle(CDM_MessageDriver)& /*aMsgDriver*/)
+ const Handle(Message_Messenger)& /*aMsgDriver*/)
{
Handle(XmlMDF_ADriver) aDriver;
//empty; to be redefined
class PCDM_Document;
class CDM_Document;
class CDM_Application;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMDF_ADriver;
const Handle(CDM_Document)& theDoc,
const Handle(CDM_Application)& theApplication) Standard_OVERRIDE;
- Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Standard_Boolean MakeDocument (const XmlObjMgt_Element& thePDoc, const Handle(CDM_Document)& theTDoc);
- Standard_EXPORT virtual Handle(XmlMDF_ADriver) ReadShapeSection (const XmlObjMgt_Element& thePDoc, const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT virtual Handle(XmlMDF_ADriver) ReadShapeSection (const XmlObjMgt_Element& thePDoc, const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual void ShapeSetCleaning (const Handle(XmlMDF_ADriver)& theDriver);
#include <CDM_Application.hxx>
#include <CDM_Document.hxx>
-#include <CDM_MessageDriver.hxx>
-#include <CDM_NullMessageDriver.hxx>
+#include <Message.hxx>
+#include <Message_Messenger.hxx>
#include <LDOM_DocumentType.hxx>
#include <LDOM_LDOMImplementation.hxx>
#include <LDOM_XmlWriter.hxx>
//#define TAKE_TIMES
static void take_time (const Standard_Integer, const char *,
- const Handle(CDM_MessageDriver)&)
+ const Handle(Message_Messenger)&)
#ifdef TAKE_TIMES
;
#else
TCollection_ExtendedString aMsg = TCollection_ExtendedString("Error: the file ") +
theFileName + " cannot be opened for writing";
- theDocument->Application()->MessageDriver()->Write (aMsg.ToExtString());
+ theDocument->Application()->MessageDriver()->Send (aMsg.ToExtString(), Message_Fail);
throw Standard_Failure("File cannot be opened for writing");
}
}
Standard_EXPORT void XmlLDrivers_DocumentStorageDriver::Write (const Handle(CDM_Document)& theDocument,
Standard_OStream& theOStream)
{
- Handle(CDM_MessageDriver) aMessageDriver = theDocument->Application()->MessageDriver();
+ Handle(Message_Messenger) aMessageDriver = theDocument->Application()->MessageDriver();
::take_time (~0, " +++++ Start STORAGE procedures ++++++", aMessageDriver);
// Create new DOM_Document
TCollection_ExtendedString aMsg = TCollection_ExtendedString("Error: the stream is bad and") +
" cannot be used for writing";
- theDocument->Application()->MessageDriver()->Write (aMsg.ToExtString());
+ theDocument->Application()->MessageDriver()->Send (aMsg.ToExtString(), Message_Fail);
throw Standard_Failure("File cannot be opened for writing");
}
XmlObjMgt_Element& theElement)
{
SetIsError(Standard_False);
- Handle(CDM_MessageDriver) aMessageDriver =
+ Handle(Message_Messenger) aMessageDriver =
theDocument -> Application() -> MessageDriver();
// 1. Write header information
Standard_Integer i;
aResourceDir += "/src/XmlOcafResource" ;
aToSetCSFVariable = Standard_True; //CSF variable to be set later
}
-#ifdef OCCT_DEBUG
+#ifdef OCCT_DEBUGXML
else {
TCollection_ExtendedString aWarn = FAILSTR "Neither ";
aWarn = (aWarn + aCSFVariable[0] + ", nor " + aCSFVariable[1]
+ " variables have been set");
- aMessageDriver->Write (aWarn.ToExtString());
+ aMessageDriver->Send (aWarn.ToExtString(), Message_Warning);
}
#endif
}
if (aToSetCSFVariable) {
OSD_Environment aCSFVarEnv ( aCSFVariable[0], aResourceDir );
aCSFVarEnv.Build();
-#ifdef OCCT_DEBUG
+#ifdef OCCT_DEBUGXML
TCollection_ExtendedString aWarn1 = "Variable ";
aWarn1 = (aWarn1 + aCSFVariable[0]
+ " has not been explicitly defined. Set to " + aResourceDir);
- aMessageDriver->Write (aWarn1.ToExtString());
+ aMessageDriver->Send (aWarn1.ToExtString(), Message_Warning);
#endif
if ( aCSFVarEnv.Failed() ) {
TCollection_ExtendedString aWarn = FAILSTR "Failed to initialize ";
aWarn = aWarn + aCSFVariable[0] + " with " + aResourceDir;
- aMessageDriver->Write (aWarn.ToExtString());
+ aMessageDriver->Send (aWarn.ToExtString(), Message_Fail);
}
}
}
-#ifdef OCCT_DEBUG
+#ifdef OCCT_DEBUGXML
else {
TCollection_ExtendedString aWarn = FAILSTR "Schema definition file ";
aWarn += (aResourceFileName + " was not found");
- aMessageDriver->Write (aWarn.ToExtString());
+ aMessageDriver->Send (aWarn.ToExtString(), Message_Warning);
}
#endif
anHTTP = anHTTP + ' ' + aResourceFileName;
SetIsError (Standard_True);
SetStoreStatus(PCDM_SS_Failure);
TCollection_ExtendedString anErrorString (anException.GetMessageString());
- aMessageDriver -> Write (anErrorString.ToExtString());
+ aMessageDriver ->Send (anErrorString.ToExtString(), Message_Fail);
}
}
if (anObjNb <= 0 && IsError() == Standard_False) {
SetIsError (Standard_True);
SetStoreStatus(PCDM_SS_No_Obj);
TCollection_ExtendedString anErrorString ("error occurred");
- aMessageDriver -> Write (anErrorString.ToExtString());
+ aMessageDriver ->Send (anErrorString.ToExtString(), Message_Fail);
}
// 2b. Write number of objects into the info section
anInfoElem.setAttribute("objnb", anObjNb);
// Find MessageDriver and pass it to AttributeDrivers()
Handle(CDM_Application) anApplication= theTDoc -> Application();
- Handle(CDM_MessageDriver) aMessageDriver;
- if (anApplication.IsNull())
- aMessageDriver = new CDM_NullMessageDriver;
+ Handle(Message_Messenger) aMessageDriver;
+ if (anApplication.IsNull()) {
+ aMessageDriver = Message::DefaultMessenger();
+ aMessageDriver->ChangePrinters().Clear();
+ }
else
aMessageDriver = anApplication -> MessageDriver();
if (myDrivers.IsNull()) myDrivers = AttributeDrivers (aMessageDriver);
// Retrieve from DOM_Document
XmlMDF::FromTo (aTDF, theElement, myRelocTable, myDrivers);
-#ifdef OCCT_DEBUG
+#ifdef OCCT_DEBUGXML
aMessage = "First step successfull";
- aMessageDriver -> Write (aMessage.ToExtString());
+ aMessageDriver -> Send (aMessage.ToExtString(), Message_Warning);
#endif
return myRelocTable.Extent();
}
//purpose :
//=======================================================================
Handle(XmlMDF_ADriverTable) XmlLDrivers_DocumentStorageDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
{
return XmlLDrivers::AttributeDrivers (theMessageDriver);
}
struct timeb tmbuf0;
static void take_time (const Standard_Integer isReset, const char * aHeader,
- const Handle(CDM_MessageDriver)& aMessageDriver)
+ const Handle(Message_Messenger)& aMessageDriver)
{
struct timeb tmbuf;
ftime (&tmbuf);
double(tmbuf.millitm - tmbuf0.millitm)/1000.);
aMessage += take_tm_buf;
}
- aMessageDriver -> Write (aMessage.ToExtString());
+ aMessageDriver ->Send (aMessage.ToExtString(), Message_Trace);
}
#endif
class TCollection_ExtendedString;
class CDM_Document;
class TCollection_AsciiString;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlLDrivers_DocumentStorageDriver;
Standard_EXPORT virtual void Write (const Handle(CDM_Document)& theDocument, Standard_OStream& theOStream) Standard_OVERRIDE;
- Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver);
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Storage_Schema.hxx>
#include <TColStd_MapOfTransient.hxx>
#include <TDF_Attribute.hxx>
TCollection_ExtendedString anErrorMessage =
TCollection_ExtendedString ("Wrong Tag value for OCAF Label: ")
+ aTag;
- theDriverMap.Find("TDF_TagSource") -> WriteMessage (anErrorMessage);
+ theDriverMap.Find("TDF_TagSource") -> myMessageDriver->Send (anErrorMessage, Message_Fail);
return -1;
}
// create label
TCollection_ExtendedString anErrorMessage =
TCollection_ExtendedString("Wrong ID of OCAF attribute with type ")
+ aName;
- driver -> WriteMessage (anErrorMessage);
+ driver -> myMessageDriver->Send (anErrorMessage, Message_Fail);
return -1;
}
Handle(TDF_Attribute) tAtt;
if (tAtt->Label().IsNull())
theLabel.AddAttribute (tAtt);
else
- driver->WriteMessage
+ driver->myMessageDriver->Send
(TCollection_ExtendedString("XmlDriver warning: ") +
"attempt to attach attribute " +
- aName + " to a second label");
+ aName + " to a second label", Message_Warning);
if (! driver -> Paste (pAtt, tAtt, theRelocTable))
{
// error converting persistent to transient
- driver->WriteMessage
+ driver->myMessageDriver->Send
(TCollection_ExtendedString("XmlDriver warning: ") +
- "failure reading attribute " + aName);
+ "failure reading attribute " + aName, Message_Warning);
}
else if (isBound == Standard_False)
theRelocTable.Bind (anID, tAtt);
//purpose :
//=======================================================================
void XmlMDF::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& aMessageDriver)
+ const Handle(Message_Messenger)& aMessageDriver)
{
aDriverTable->AddDriver (new XmlMDF_TagSourceDriver(aMessageDriver));
aDriverTable->AddDriver (new XmlMDF_ReferenceDriver(aMessageDriver));
if (theAsciiDriverMap.IsBound (aTypeName) == Standard_False)
theAsciiDriverMap.Bind (aTypeName, aDriver);
else
- aDriver -> WriteMessage
+ aDriver -> myMessageDriver->Send
(TCollection_ExtendedString ("Warning: skipped driver name: \"")
- + aTypeName + '\"');
+ + aTypeName + '\"', Message_Warning);
anIter.Next();
}
}
class TDF_Data;
class XmlMDF_ADriverTable;
class TDF_Label;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMDF_ADriver;
class XmlMDF_TagSourceDriver;
class XmlMDF_ReferenceDriver;
Standard_EXPORT static Standard_Boolean FromTo (const XmlObjMgt_Element& aSource, Handle(TDF_Data)& aTarget, XmlObjMgt_RRelocationTable& aReloc, const Handle(XmlMDF_ADriverTable)& aDrivers);
//! Adds the attribute storage drivers to <aDriverSeq>.
- Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(Message_Messenger)& theMessageDriver);
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_ExtendedString.hxx>
//function : XmlMDF_ADriver
//purpose : Constructor
//=======================================================================
-XmlMDF_ADriver::XmlMDF_ADriver (const Handle(CDM_MessageDriver)& theMsgDriver,
+XmlMDF_ADriver::XmlMDF_ADriver (const Handle(Message_Messenger)& theMsgDriver,
const Standard_CString theNS,
const Standard_CString theName)
: myMessageDriver (theMsgDriver)
if (myTypeName.Length() == 0 || aString [myTypeName.Length() - 1] == ':')
(TCollection_AsciiString&)myTypeName += SourceType() -> Name();
return myTypeName;
-}
-
-//=======================================================================
-//function : WriteMessage
-//purpose :
-//=======================================================================
-
-void XmlMDF_ADriver::WriteMessage
- (const TCollection_ExtendedString& aMessage) const
-{
- myMessageDriver -> Write (aMessage.ToExtString());
-}
+}
\ No newline at end of file
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class TCollection_AsciiString;
class XmlObjMgt_Persistent;
//! into <aTarget>, using the relocation table
//! <aRelocTable> to keep the sharings.
Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& aSource, XmlObjMgt_Persistent& aTarget, XmlObjMgt_SRelocationTable& aRelocTable) const = 0;
-
- //! Send message to Application (usually when error occurres)
- Standard_EXPORT void WriteMessage (const TCollection_ExtendedString& theMessage) const;
-
-
-
DEFINE_STANDARD_RTTIEXT(XmlMDF_ADriver,Standard_Transient)
protected:
-
- Standard_EXPORT XmlMDF_ADriver(const Handle(CDM_MessageDriver)& theMessageDriver, const Standard_CString theNamespace, const Standard_CString theName = NULL);
+ Standard_EXPORT XmlMDF_ADriver(const Handle(Message_Messenger)& theMessageDriver, const Standard_CString theNamespace, const Standard_CString theName = NULL);
TCollection_AsciiString myTypeName;
+ Handle(Message_Messenger) myMessageDriver;
private:
-
- Handle(CDM_MessageDriver) myMessageDriver;
-
+friend class XmlMDF;
};
//AGV 150202: Changed prototype XmlObjMgt::SetStringValue()
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Reference.hxx>
//purpose : Constructor
//=======================================================================
XmlMDF_ReferenceDriver::XmlMDF_ReferenceDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
if (anXPath == NULL)
{
- WriteMessage ("Cannot retrieve reference string from element");
+ myMessageDriver->Send ("Cannot retrieve reference string from element", Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Cannot retrieve reference from \"")
+ anXPath + '\"';
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDF_ReferenceDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDF_ReferenceDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
//AGV 150202: Changed prototype XmlObjMgt::SetStringValue()
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_TagSource.hxx>
//purpose : Constructor
//=======================================================================
XmlMDF_TagSourceDriver::XmlMDF_TagSourceDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString ("Cannot retrieve TagSource attribute from \"")
+ aTagStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString ("Invalid value of TagSource retrieved: ")
+ aTag;
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDF_TagSourceDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDF_TagSourceDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// modified 20.04.2009 Sergey Zaritchny
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <XmlMDataStd.hxx>
#include <XmlMDataStd_AsciiStringDriver.hxx>
#include <XmlMDataStd_BooleanArrayDriver.hxx>
//purpose :
//=======================================================================
void XmlMDataStd::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& anMsgDrv)
+ const Handle(Message_Messenger)& anMsgDrv)
{
aDriverTable-> AddDriver (new XmlMDataStd_DirectoryDriver (anMsgDrv));
aDriverTable-> AddDriver (new XmlMDataStd_IntegerArrayDriver (anMsgDrv));
#include <Standard_Integer.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMDataStd_NameDriver;
class XmlMDataStd_IntegerDriver;
class XmlMDataStd_RealDriver;
//! Adds the attribute drivers to <aDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& anMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(Message_Messenger)& anMsgDrv);
Standard_EXPORT static void SetDocumentVersion (const Standard_Integer DocVersion);
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_AsciiString.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_AsciiStringDriver::XmlMDataStd_AsciiStringDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
Handle(TDataStd_AsciiString)::DownCast(theTarget)->SetID(aGUID);
return Standard_True;
}
- WriteMessage("error retrieving AsciiString for type TDataStd_AsciiString");
+ myMessageDriver->Send("error retrieving AsciiString for type TDataStd_AsciiString", Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_AsciiStringDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_AsciiStringDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfByte.hxx>
//function : XmlMDataStd_BooleanArrayDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_BooleanArrayDriver::XmlMDataStd_BooleanArrayDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_BooleanArrayDriver::XmlMDataStd_BooleanArrayDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
TCollection_ExtendedString("Cannot retrieve the first index"
" for BooleanArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for BooleanArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("The last index is greater than the first index"
" for BooleanArray attribute \"");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve integer member"
" for BooleanArray attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
arr.SetValue(i, (Standard_Byte) aValue);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_BooleanArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_BooleanArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_BooleanList.hxx>
//function : XmlMDataStd_BooleanListDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_BooleanListDriver::XmlMDataStd_BooleanListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_BooleanListDriver::XmlMDataStd_BooleanListDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
TCollection_ExtendedString("Cannot retrieve the first index"
" for BooleanList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for BooleanList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve integer member"
" for BooleanList attribute as \"");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aBooleanList->Append(anInteger ? Standard_True : Standard_False);
TCollection_ExtendedString("Cannot retrieve integer member"
" for BooleanList attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aBooleanList->Append(aValue ? Standard_True : Standard_False);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_BooleanListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_BooleanListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HArray1OfByte.hxx>
//function : XmlMDataStd_ByteArrayDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_ByteArrayDriver::XmlMDataStd_ByteArrayDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_ByteArrayDriver::XmlMDataStd_ByteArrayDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
TCollection_ExtendedString("Cannot retrieve the first index"
" for ByteArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for ByteArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("The last index is greater than the first index"
" for ByteArray attribute \"");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve integer member"
" for ByteArray attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
arr.SetValue(i, (Standard_Byte) aValue);
TCollection_ExtendedString("Cannot retrieve the isDelta value"
" for ByteArray attribute as \"")
+ aDeltaValue + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
else
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_ByteArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_ByteArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Comment.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_CommentDriver::XmlMDataStd_CommentDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
Handle(TDataStd_Comment)::DownCast(theTarget) -> Set (aString);
return Standard_True;
}
- WriteMessage("error retrieving ExtendedString for type TDataStd_Comment");
+ myMessageDriver->Send("error retrieving ExtendedString for type TDataStd_Comment", Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_CommentDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_CommentDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Directory.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_DirectoryDriver::XmlMDataStd_DirectoryDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_DirectoryDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_DirectoryDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Expression.hxx>
#include <TDataStd_Variable.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_ExpressionDriver::XmlMDataStd_ExpressionDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
TCollection_ExtendedString aString;
if (!XmlObjMgt::GetExtendedString (theSource, aString))
{
- WriteMessage("error retrieving ExtendedString for type TDataStd_Expression");
+ myMessageDriver->Send("error retrieving ExtendedString for type TDataStd_Expression", Message_Fail);
return Standard_False;
}
aC->SetExpression(aString);
aMsgString = TCollection_ExtendedString
("XmlMDataStd_ExpressionDriver: Cannot retrieve reference on first variable from \"")
+ aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
Standard_Integer i = 1;
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_ExpressionDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_ExpressionDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <LDOM_MemManager.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ExtStringArray.hxx>
//=======================================================================
XmlMDataStd_ExtStringArrayDriver::XmlMDataStd_ExtStringArrayDriver
- ( const Handle(CDM_MessageDriver)& theMsgDriver )
+ ( const Handle(Message_Messenger)& theMsgDriver )
: XmlMDF_ADriver( theMsgDriver, NULL )
{}
TCollection_ExtendedString("Cannot retrieve the first index"
" for ExtStringArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for ExtStringArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the isDelta value"
" for IntegerArray attribute as \"")
+ aDeltaValue + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
else
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_ExtStringArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_ExtStringArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <LDOM_MemManager.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ExtStringList.hxx>
//function : XmlMDataStd_ExtStringListDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_ExtStringListDriver::XmlMDataStd_ExtStringListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_ExtStringListDriver::XmlMDataStd_ExtStringListDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
TCollection_ExtendedString("Cannot retrieve the first index"
" for ExtStringList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for ExtStringList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
{
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve a list of extended strings");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_ExtStringListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_ExtStringListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TColStd_HPackedMapOfInteger.hxx>
//=======================================================================
XmlMDataStd_IntPackedMapDriver::XmlMDataStd_IntPackedMapDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_IntPackedMap)->Name())
{}
TCollection_ExtendedString("Cannot retrieve the Map size"
" for IntPackedMap attribute as \"")
+ aSize + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
Handle(TColStd_HPackedMapOfInteger) aHMap = new TColStd_HPackedMapOfInteger ();
Standard_Boolean Ok = Standard_True;
if(aSize) {
Standard_CString aValueString =
- Standard_CString(XmlObjMgt::GetStringValue(anElement).GetString());
+ Standard_CString(XmlObjMgt::GetStringValue(anElement).GetString());
// Handle(TColStd_HPackedMapOfInteger) aHMap = new TColStd_HPackedMapOfInteger ();
for (Standard_Integer i = 1; i <= aSize; i++) {
- Standard_Integer aValue;
- if (!XmlObjMgt::GetInteger(aValueString, aValue)) {
- Ok = Standard_False; break;
- }
- if(!aHMap->ChangeMap().Add( aValue )) {
- Ok = Standard_False; break;
- }
+ Standard_Integer aValue;
+ if (!XmlObjMgt::GetInteger(aValueString, aValue)) {
+ Ok = Standard_False; break;
+ }
+ if(!aHMap->ChangeMap().Add( aValue )) {
+ Ok = Standard_False; break;
+ }
}
if(!Ok) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve integer member"
- " for IntPackedMap attribute as \"")
- + aValueString + "\"";
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve integer member"
+ " for IntPackedMap attribute as \"")
+ + aValueString + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
if(aPackedMap->ChangeMap(aHMap))
- Ok = Standard_True;
+ Ok = Standard_True;
}
if(Ok) {
Standard_Boolean aDelta(Standard_False);
-
+
if(XmlMDataStd::DocumentVersion() > 2) {
- Standard_Integer aDeltaValue;
- if (!anElement.getAttribute(::IsDeltaOn()).GetInteger(aDeltaValue))
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the isDelta value"
- " for IntPackedMap attribute as \"")
- + aDeltaValue + "\"";
- WriteMessage (aMessageString);
- return Standard_False;
- }
- else
- aDelta = aDeltaValue != 0;
+ Standard_Integer aDeltaValue;
+ if (!anElement.getAttribute(::IsDeltaOn()).GetInteger(aDeltaValue))
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve the isDelta value"
+ " for IntPackedMap attribute as \"")
+ + aDeltaValue + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+ else
+ aDelta = aDeltaValue != 0;
}
#ifdef OCCT_DEBUG
else if(XmlMDataStd::DocumentVersion() == -1)
- cout << "Current DocVersion field is not initialized. " <<endl;
+ cout << "Current DocVersion field is not initialized. " <<endl;
#endif
aPackedMap->SetDelta(aDelta);
return Standard_True;
}
}
- WriteMessage("error retrieving Map for type TDataStd_IntPackedMap");
+ myMessageDriver->Send("error retrieving Map for type TDataStd_IntPackedMap", Message_Fail);
return Standard_False;
}
{
Handle(TDataStd_IntPackedMap) aS = Handle(TDataStd_IntPackedMap)::DownCast(theSource);
if (aS.IsNull()) {
- WriteMessage ("IntPackedMapDriver:: The source attribute is Null.");
+ myMessageDriver->Send ("IntPackedMapDriver:: The source attribute is Null.", Message_Warning);
return;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_IntPackedMapDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_IntPackedMapDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
//AGV 150202: Changed prototype XmlObjMgt::SetStringValue()
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_IntegerArray.hxx>
//=======================================================================
XmlMDataStd_IntegerArrayDriver::XmlMDataStd_IntegerArrayDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
TCollection_ExtendedString("Cannot retrieve the first index"
" for IntegerArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for IntegerArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve integer member"
" for IntegerArray attribute as \"");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
anIntArray->SetValue(aFirstInd, anInteger);
TCollection_ExtendedString("Cannot retrieve integer member"
" for IntegerArray attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
anIntArray->SetValue(ind, aValue);
TCollection_ExtendedString("Cannot retrieve the isDelta value"
" for IntegerArray attribute as \"")
+ aDeltaValue + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
else
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_IntegerArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_IntegerArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_IntegerDriver::XmlMDataStd_IntegerDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve Integer attribute from \"")
+ anIntStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_IntegerDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_IntegerDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
//function : XmlMDataStd_IntegerListDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_IntegerListDriver::XmlMDataStd_IntegerListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_IntegerListDriver::XmlMDataStd_IntegerListDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
TCollection_ExtendedString("Cannot retrieve the first index"
" for IntegerList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for IntegerList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve integer member"
" for IntegerList attribute as \"");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
anIntList->Append(anInteger);
TCollection_ExtendedString("Cannot retrieve integer member"
" for IntegerList attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
anIntList->Append(aValue);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_IntegerListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_IntegerListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Name.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_NameDriver::XmlMDataStd_NameDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
return Standard_True;
}
}
- WriteMessage("error retrieving ExtendedString for type TDataStd_Name");
+ myMessageDriver->Send("error retrieving ExtendedString for type TDataStd_Name", Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_NameDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_NameDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <LDOM_MemManager.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
//function : XmlMDataStd_NamedDataDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_NamedDataDriver::XmlMDataStd_NamedDataDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_NamedDataDriver::XmlMDataStd_NamedDataDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
}
//=======================================================================
Handle(TColStd_HArray1OfInteger) BuildIntArray(const TCollection_AsciiString& ValString,
- const Standard_Integer theLen)
+ const Standard_Integer theLen)
{
Handle(TColStd_HArray1OfInteger) anArr;
if(ValString.Length() == 0 || !theLen) return anArr;
//=======================================================================
Handle(TColStd_HArray1OfReal) BuildRealArray(const TCollection_AsciiString& ValString,
- const Standard_Integer theLen)
+ const Standard_Integer theLen)
{
Handle(TColStd_HArray1OfReal) anArr;
if(ValString.Length() == 0 || !theLen) return anArr;
//purpose : persistent -> transient (retrieve)
//=======================================================================
Standard_Boolean XmlMDataStd_NamedDataDriver::Paste(const XmlObjMgt_Persistent& theSource,
- const Handle(TDF_Attribute)& theTarget,
- XmlObjMgt_RRelocationTable& ) const
+ const Handle(TDF_Attribute)& theTarget,
+ XmlObjMgt_RRelocationTable& ) const
{
Standard_Integer aFirstInd, aLastInd, ind;
const XmlObjMgt_Element& anElement = theSource;
TCollection_ExtendedString("Cannot retrieve the first index for NamedData"
" attribute (DataMapOfStringInteger) as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
" attribute (DataMapOfStringInteger) as \"")
+ aLastIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
try {
if((aFirstInd | aLastInd) && aLastInd >= aFirstInd) {
if ( !anElement.hasChildNodes() )
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve DataMapOfStringInteger");
- WriteMessage (aMessageString);
- return Standard_False;
- }
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve DataMapOfStringInteger");
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
aCurNode = anElement.getFirstChild();
LDOM_Element* aCurElement = (LDOM_Element*)&aCurNode;
TCollection_ExtendedString aValueStr, aKey;
TColStd_DataMapOfStringInteger aMap;
for (ind = aFirstInd; ind < aLastInd; ind++) {
- XmlObjMgt::GetExtendedString( *aCurElement, aKey );
- aValueStr = SplitItemFromEnd(aKey);
- if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
- }
- TCollection_AsciiString aVal(aValueStr,'?');
- Standard_Integer aValue = aVal.IntegerValue();
- aMap.Bind(aKey, aValue);
- aCurNode = aCurElement->getNextSibling();
- aCurElement = (LDOM_Element*)&aCurNode;
+ XmlObjMgt::GetExtendedString( *aCurElement, aKey );
+ aValueStr = SplitItemFromEnd(aKey);
+ if(aValueStr.Length() == 0) {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+ TCollection_AsciiString aVal(aValueStr,'?');
+ Standard_Integer aValue = aVal.IntegerValue();
+ aMap.Bind(aKey, aValue);
+ aCurNode = aCurElement->getNextSibling();
+ aCurElement = (LDOM_Element*)&aCurNode;
}
XmlObjMgt::GetExtendedString( *aCurElement, aKey );
aValueStr = SplitItemFromEnd(aKey);
if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
TCollection_AsciiString aVal(aValueStr,'?');
Standard_Integer aValue = aVal.IntegerValue();
T->ChangeIntegers(aMap);
}
-//DataMapOfStringReal
+ //DataMapOfStringReal
aFirstIndex = anElement.getAttribute(::FirstRealIndex());
if (aFirstIndex == NULL)
aFirstInd = 1;
else if (!aFirstIndex.GetInteger(aFirstInd))
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the first index for NamedData "
- "attribute (DataMapOfStringReal) as \"")
- + aFirstIndex + "\"";
- WriteMessage (aMessageString);
- return Standard_False;
- }
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve the first index for NamedData "
+ "attribute (DataMapOfStringReal) as \"")
+ + aFirstIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
- // Read the LastIndex;
+ // Read the LastIndex;
aLastIndex = anElement.getAttribute(::LastRealIndex());
if(aLastIndex == NULL) {
aFirstInd = 0;
aLastInd = 0;
} else if (!aLastIndex.GetInteger(aLastInd)) {
TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
- " attribute (DataMapOfStringReal) as \"")
- + aLastIndex + "\"";
- WriteMessage (aMessageString);
+ TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
+ " attribute (DataMapOfStringReal) as \"")
+ + aLastIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
if((aFirstInd | aLastInd) && aLastInd >= aFirstInd) {
if ( !anElement.hasChildNodes())
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve DataMapOfStringReal");
- WriteMessage (aMessageString);
- return Standard_False;
- }
-
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve DataMapOfStringReal");
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+
LDOM_Element* aCurElement;
if (aCurNode.isNull())
- aCurNode = anElement.getFirstChild();
+ aCurNode = anElement.getFirstChild();
else
aCurNode = ((LDOM_Element*)&aCurNode)->getNextSibling();
-
+
aCurElement = (LDOM_Element*)&aCurNode;
TCollection_ExtendedString aValueStr, aKey;
TDataStd_DataMapOfStringReal aMap;
for (ind = aFirstInd; ind < aLastInd; ind++) {
- XmlObjMgt::GetExtendedString( *aCurElement, aKey );
- aValueStr = SplitItemFromEnd(aKey);
- if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
- }
- TCollection_AsciiString aVal(aValueStr,'?');
- Standard_Real aValue = aVal.RealValue();
- aMap.Bind(aKey, aValue);
- aCurNode = aCurElement->getNextSibling();
- aCurElement = (LDOM_Element*)&aCurNode;
+ XmlObjMgt::GetExtendedString( *aCurElement, aKey );
+ aValueStr = SplitItemFromEnd(aKey);
+ if(aValueStr.Length() == 0) {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+ TCollection_AsciiString aVal(aValueStr,'?');
+ Standard_Real aValue = aVal.RealValue();
+ aMap.Bind(aKey, aValue);
+ aCurNode = aCurElement->getNextSibling();
+ aCurElement = (LDOM_Element*)&aCurNode;
}
XmlObjMgt::GetExtendedString( *aCurElement, aKey );
aValueStr = SplitItemFromEnd(aKey);
if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
TCollection_AsciiString aVal(aValueStr,'?');
Standard_Real aValue = aVal.RealValue();
if (aFirstIndex == NULL)
aFirstInd = 1;
else if (!aFirstIndex.GetInteger(aFirstInd))
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the first index for NamedData"
- " attribute (DataMapOfStringString) as \"")
- + aFirstIndex + "\"";
- WriteMessage (aMessageString);
- return Standard_False;
- }
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve the first index for NamedData"
+ " attribute (DataMapOfStringString) as \"")
+ + aFirstIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
aLastIndex = anElement.getAttribute(::LastStringIndex());
if(aLastIndex == NULL) {
aFirstInd = 0;
aLastInd = 0;
} else if (!aLastIndex.GetInteger(aLastInd)) {
TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
- " attribute (DataMapOfStringString) as \"")
- + aLastIndex + "\"";
- WriteMessage (aMessageString);
+ TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
+ " attribute (DataMapOfStringString) as \"")
+ + aLastIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
-
+
if((aFirstInd | aLastInd) && aLastInd >= aFirstInd) {
if ( !anElement.hasChildNodes())
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve DataMapOfStringString");
- WriteMessage (aMessageString);
- return Standard_False;
- }
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve DataMapOfStringString");
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
LDOM_Element* aCurElement;
if (aCurNode.isNull())
- aCurNode = anElement.getFirstChild();
+ aCurNode = anElement.getFirstChild();
else
- aCurNode = ((LDOM_Element*)&aCurNode)->getNextSibling();
-
+ aCurNode = ((LDOM_Element*)&aCurNode)->getNextSibling();
+
aCurElement = (LDOM_Element*)&aCurNode;
TCollection_ExtendedString aValue, aKey;
TDataStd_DataMapOfStringString aMap;
for (ind = aFirstInd; ind < aLastInd; ind++) {
- XmlObjMgt::GetExtendedString( *aCurElement, aKey );
- aValue = SplitItemFromStart(aKey); // ==>from start
- if(aValue.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
- }
- aMap.Bind(aKey, aValue);
- aCurNode = aCurElement->getNextSibling();
- aCurElement = (LDOM_Element*)&aCurNode;
+ XmlObjMgt::GetExtendedString( *aCurElement, aKey );
+ aValue = SplitItemFromStart(aKey); // ==>from start
+ if(aValue.Length() == 0) {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+ aMap.Bind(aKey, aValue);
+ aCurNode = aCurElement->getNextSibling();
+ aCurElement = (LDOM_Element*)&aCurNode;
}
XmlObjMgt::GetExtendedString( *aCurElement, aKey );
aValue = SplitItemFromStart(aKey);
if(aValue.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
-
+
aMap.Bind(aKey, aValue);
T->ChangeStrings(aMap);
}
if (aFirstIndex == NULL)
aFirstInd = 1;
else if (!aFirstIndex.GetInteger(aFirstInd))
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the first index for NamedData "
- "attribute (DataMapOfStringByte) as \"")
- + aFirstIndex + "\"";
- WriteMessage (aMessageString);
- return Standard_False;
- }
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve the first index for NamedData "
+ "attribute (DataMapOfStringByte) as \"")
+ + aFirstIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
- // Read the LastIndex;
+ // Read the LastIndex;
aLastIndex = anElement.getAttribute(::LastByteIndex());
if(aLastIndex == NULL) {
aFirstInd = 0;
aLastInd = 0;
} else if (!aLastIndex.GetInteger(aLastInd)) {
TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
- " attribute (DataMapOfStringByte) as \"")
- + aLastIndex + "\"";
- WriteMessage (aMessageString);
+ TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
+ " attribute (DataMapOfStringByte) as \"")
+ + aLastIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
-
+
if((aFirstInd | aLastInd) && aLastInd >= aFirstInd) {
if ( !anElement.hasChildNodes())
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve DataMapOfStringByte");
- WriteMessage (aMessageString);
- return Standard_False;
- }
-
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve DataMapOfStringByte");
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+
LDOM_Element* aCurElement;
if (aCurNode.isNull())
- aCurNode = anElement.getFirstChild();
+ aCurNode = anElement.getFirstChild();
else
- aCurNode = ((LDOM_Element*)&aCurNode)->getNextSibling();
-
+ aCurNode = ((LDOM_Element*)&aCurNode)->getNextSibling();
+
aCurElement = (LDOM_Element*)&aCurNode;
TCollection_ExtendedString aValueStr, aKey;
TDataStd_DataMapOfStringByte aMap;
for (ind = aFirstInd; ind < aLastInd; ind++) {
- XmlObjMgt::GetExtendedString( *aCurElement, aKey );
- aValueStr = SplitItemFromEnd(aKey);
- if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
- }
-
- TCollection_AsciiString aVal(aValueStr,'?');
- Standard_Byte aValue = (Standard_Byte)aVal.IntegerValue();
-
- aMap.Bind(aKey, aValue);
- aCurNode = aCurElement->getNextSibling();
- aCurElement = (LDOM_Element*)&aCurNode;
+ XmlObjMgt::GetExtendedString( *aCurElement, aKey );
+ aValueStr = SplitItemFromEnd(aKey);
+ if(aValueStr.Length() == 0) {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+
+ TCollection_AsciiString aVal(aValueStr,'?');
+ Standard_Byte aValue = (Standard_Byte)aVal.IntegerValue();
+
+ aMap.Bind(aKey, aValue);
+ aCurNode = aCurElement->getNextSibling();
+ aCurElement = (LDOM_Element*)&aCurNode;
}
XmlObjMgt::GetExtendedString( *aCurElement, aKey );
aValueStr = SplitItemFromEnd(aKey);
if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
-
+
TCollection_AsciiString aVal(aValueStr,'?');
Standard_Byte aValue = (Standard_Byte)aVal.IntegerValue();
aMap.Bind(aKey, aValue);
if (aFirstIndex == NULL)
aFirstInd = 1;
else if (!aFirstIndex.GetInteger(aFirstInd))
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the first index for NamedData "
- "attribute (DataMapOfStringHArray1OfInteger) as \"")
- + aFirstIndex + "\"";
- WriteMessage (aMessageString);
- return Standard_False;
- }
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve the first index for NamedData "
+ "attribute (DataMapOfStringHArray1OfInteger) as \"")
+ + aFirstIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
// Read the LastIndex;
aLastIndex = anElement.getAttribute(::LastIntArrIndex());
aLastInd = 0;
} else if (!aLastIndex.GetInteger(aLastInd)) {
TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
- " attribute (DataMapOfStringHArray1OfInteger) as \"")
- + aLastIndex + "\"";
- WriteMessage (aMessageString);
+ TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
+ " attribute (DataMapOfStringHArray1OfInteger) as \"")
+ + aLastIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
-
+
if((aFirstInd | aLastInd) && aLastInd >= aFirstInd) {
if ( !anElement.hasChildNodes())
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve DataMapOfStringHArray1OfInteger");
- WriteMessage (aMessageString);
- return Standard_False;
- }
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve DataMapOfStringHArray1OfInteger");
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
LDOM_Element* aCurElement;
if (aCurNode.isNull())
- aCurNode = anElement.getFirstChild();
+ aCurNode = anElement.getFirstChild();
else
- aCurNode =((LDOM_Element*)&aCurNode)->getNextSibling();
-
+ aCurNode =((LDOM_Element*)&aCurNode)->getNextSibling();
+
aCurElement = (LDOM_Element*)&aCurNode;
TCollection_ExtendedString aKey, aValueStr;
TDataStd_DataMapOfStringHArray1OfInteger aMap;
-
+
for (ind = aFirstInd; ind < aLastInd; ind++) {
- XmlObjMgt::GetExtendedString( *aCurElement, aKey );// Len - at the end
- aValueStr = SplitItemFromEnd(aKey);
- if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
- }
- TCollection_AsciiString aVal(aValueStr,'?');
- Standard_Integer aLen = aVal.IntegerValue();
-
- TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
- Handle(TColStd_HArray1OfInteger) aValue = BuildIntArray(aValueString, aLen);
- if(aValue.IsNull()) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
- }
-
- aMap.Bind(aKey, aValue);
- aCurNode = aCurElement->getNextSibling();
- aCurElement = (LDOM_Element*)&aCurNode;
+ XmlObjMgt::GetExtendedString( *aCurElement, aKey );// Len - at the end
+ aValueStr = SplitItemFromEnd(aKey);
+ if(aValueStr.Length() == 0) {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+ TCollection_AsciiString aVal(aValueStr,'?');
+ Standard_Integer aLen = aVal.IntegerValue();
+
+ TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
+ Handle(TColStd_HArray1OfInteger) aValue = BuildIntArray(aValueString, aLen);
+ if(aValue.IsNull()) {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+
+ aMap.Bind(aKey, aValue);
+ aCurNode = aCurElement->getNextSibling();
+ aCurElement = (LDOM_Element*)&aCurNode;
}
-
+
XmlObjMgt::GetExtendedString( *aCurElement, aKey );
aValueStr = SplitItemFromEnd(aKey);
if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
TCollection_AsciiString aVal(aValueStr,'?');
Standard_Integer aLen = aVal.IntegerValue();
TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
Handle(TColStd_HArray1OfInteger) aValue = BuildIntArray(aValueString, aLen);
if(aValue.IsNull()) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
aMap.Bind(aKey, aValue);
T->ChangeArraysOfIntegers(aMap);
if (aFirstIndex == NULL)
aFirstInd = 1;
else if (!aFirstIndex.GetInteger(aFirstInd))
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the first index for NamedData "
- "attribute (DataMapOfStringHArray1OfReal) as \"")
- + aFirstIndex + "\"";
- WriteMessage (aMessageString);
- return Standard_False;
- }
-
- // Read the LastIndex;
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve the first index for NamedData "
+ "attribute (DataMapOfStringHArray1OfReal) as \"")
+ + aFirstIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+
+ // Read the LastIndex;
aLastIndex = anElement.getAttribute(::LastRealArrIndex());
if(aLastIndex == NULL) {
aFirstInd = 0;
aLastInd = 0;
} else if (!aLastIndex.GetInteger(aLastInd)) {
TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
- " attribute (DataMapOfStringHArray1OfReal) as \"")
- + aLastIndex + "\"";
- WriteMessage (aMessageString);
+ TCollection_ExtendedString("Cannot retrieve the last index for NamedData"
+ " attribute (DataMapOfStringHArray1OfReal) as \"")
+ + aLastIndex + "\"";
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
-
+
if((aFirstInd | aLastInd) && aLastInd >= aFirstInd) {
if ( !anElement.hasChildNodes())
- {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve DataMapOfStringHArray1OfReal");
- WriteMessage (aMessageString);
- return Standard_False;
- }
-
+ {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve DataMapOfStringHArray1OfReal");
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+
LDOM_Element* aCurElement;
if (aCurNode.isNull())
- aCurNode = anElement.getFirstChild();
+ aCurNode = anElement.getFirstChild();
else
- aCurNode =((LDOM_Element*)&aCurNode)->getNextSibling();
-
+ aCurNode =((LDOM_Element*)&aCurNode)->getNextSibling();
+
aCurElement = (LDOM_Element*)&aCurNode;
TCollection_ExtendedString aKey, aValueStr;
TDataStd_DataMapOfStringHArray1OfReal aMap;
-
+
for (ind = aFirstInd; ind < aLastInd; ind++) {
- XmlObjMgt::GetExtendedString( *aCurElement, aKey );// Len - at the end
- aValueStr = SplitItemFromEnd(aKey);
- if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
- }
- TCollection_AsciiString aVal(aValueStr,'?');
- Standard_Integer aLen = aVal.IntegerValue();
-
- TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
- Handle(TColStd_HArray1OfReal) aValue = BuildRealArray(aValueString, aLen);
- if(aValue.IsNull()) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
- }
-
- aMap.Bind(aKey, aValue);
- aCurNode = aCurElement->getNextSibling();
- aCurElement = (LDOM_Element*)&aCurNode;
+ XmlObjMgt::GetExtendedString( *aCurElement, aKey );// Len - at the end
+ aValueStr = SplitItemFromEnd(aKey);
+ if(aValueStr.Length() == 0) {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+ TCollection_AsciiString aVal(aValueStr,'?');
+ Standard_Integer aLen = aVal.IntegerValue();
+
+ TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
+ Handle(TColStd_HArray1OfReal) aValue = BuildRealArray(aValueString, aLen);
+ if(aValue.IsNull()) {
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
+ }
+
+ aMap.Bind(aKey, aValue);
+ aCurNode = aCurElement->getNextSibling();
+ aCurElement = (LDOM_Element*)&aCurNode;
}
-
+
XmlObjMgt::GetExtendedString( *aCurElement, aKey );
aValueStr = SplitItemFromEnd(aKey);
if(aValueStr.Length() == 0) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
TCollection_AsciiString aVal(aValueStr,'?');
Standard_Integer aLen = aVal.IntegerValue();
-
+
TCollection_AsciiString aValueString = aCurElement->getAttribute(::Value());
Handle(TColStd_HArray1OfReal) aValue = BuildRealArray(aValueString, aLen);
if(aValue.IsNull()) {
- TCollection_ExtendedString aMessageString =
- TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
- WriteMessage (aMessageString);
- return Standard_False;
+ TCollection_ExtendedString aMessageString =
+ TCollection_ExtendedString("Cannot retrieve a value from item = ") + aKey;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;
}
-
+
aMap.Bind(aKey, aValue);
- T->ChangeArraysOfReals(aMap);
+ T->ChangeArraysOfReals(aMap);
}
} catch (EXCEPTION) {
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Unknown exception during data retrieve in NamedDatDriver ");
- WriteMessage (aMessageString);
- return Standard_False;}
-
- return Standard_True;
+ myMessageDriver->Send (aMessageString, Message_Fail);
+ return Standard_False;}
+
+ return Standard_True;
}
//=======================================================================
//purpose : transient -> persistent (store)
//=======================================================================
void XmlMDataStd_NamedDataDriver::Paste(const Handle(TDF_Attribute)& theSource,
- XmlObjMgt_Persistent& theTarget,
- XmlObjMgt_SRelocationTable& ) const
+ XmlObjMgt_Persistent& theTarget,
+ XmlObjMgt_SRelocationTable& ) const
{
Handle(TDataStd_NamedData) S = Handle(TDataStd_NamedData)::DownCast(theSource);
if(S.IsNull()) {
- WriteMessage ("NamedDataDriver:: The source attribute is Null.");
+ myMessageDriver->Send ("NamedDataDriver:: The source attribute is Null.", Message_Warning);
return;}
Standard_Integer i=0, up;
TColStd_DataMapIteratorOfDataMapOfStringInteger itr(S->GetIntegersContainer());
for (i=1; itr.More(); itr.Next(),i++) {
const TCollection_ExtendedString aValueStr =
- itr.Key() + ' ' + TCollection_ExtendedString(itr.Value());// key - value;
+ itr.Key() + ' ' + TCollection_ExtendedString(itr.Value());// key - value;
XmlObjMgt_Element aCurTarget = aDoc.createElement( ::ExtString() );
XmlObjMgt::SetExtendedString( aCurTarget, aValueStr );
anElement.appendChild( aCurTarget );
theTarget.Element().setAttribute(::LastRealIndex(), up);
TDataStd_DataMapIteratorOfDataMapOfStringReal itr(S->GetRealsContainer());
for (i=1; itr.More(); itr.Next(),i++) {
- const TCollection_ExtendedString aValueStr =
- itr.Key() + ' ' + TCollection_ExtendedString(itr.Value());// key - value;
- XmlObjMgt_Element aCurTarget = aDoc.createElement( ::ExtString() );
- XmlObjMgt::SetExtendedString( aCurTarget, aValueStr );
- anElement.appendChild( aCurTarget );
+ const TCollection_ExtendedString aValueStr =
+ itr.Key() + ' ' + TCollection_ExtendedString(itr.Value());// key - value;
+ XmlObjMgt_Element aCurTarget = aDoc.createElement( ::ExtString() );
+ XmlObjMgt::SetExtendedString( aCurTarget, aValueStr );
+ anElement.appendChild( aCurTarget );
}
}
TDataStd_DataMapIteratorOfDataMapOfStringString itr(S->GetStringsContainer());
for (i=1; itr.More(); itr.Next(),i++) {
const TCollection_ExtendedString aValueStr =
- itr.Key() + ' ' + TCollection_ExtendedString(itr.Value());// key(without blanks) - value;
+ itr.Key() + ' ' + TCollection_ExtendedString(itr.Value());// key(without blanks) - value;
XmlObjMgt_Element aCurTarget = aDoc.createElement( ::ExtString() );
XmlObjMgt::SetExtendedString( aCurTarget, aValueStr );
anElement.appendChild( aCurTarget );
TDataStd_DataMapIteratorOfDataMapOfStringByte itr(S->GetBytesContainer());
for (i=1; itr.More(); itr.Next(),i++) {
const TCollection_ExtendedString aValueStr =
- itr.Key() + ' ' + TCollection_ExtendedString(itr.Value());// key - value;
+ itr.Key() + ' ' + TCollection_ExtendedString(itr.Value());// key - value;
XmlObjMgt_Element aCurTarget = aDoc.createElement( ::ExtString() );
XmlObjMgt::SetExtendedString( aCurTarget, aValueStr );
anElement.appendChild( aCurTarget );
const Standard_Integer aLen = anArr1.Upper() - anArr1.Lower() +1;
const TCollection_ExtendedString aValueStr =
- itr.Key() + ' ' + TCollection_ExtendedString(aLen);// key - Num_of_Arr_elements;
+ itr.Key() + ' ' + TCollection_ExtendedString(aLen);// key - Num_of_Arr_elements;
XmlObjMgt_Element aCurTarget = aDoc.createElement( ::ExtString() );
XmlObjMgt::SetExtendedString( aCurTarget, aValueStr); //key
anElement.appendChild( aCurTarget );
//Value = Array
TCollection_AsciiString aValueStr2;
Standard_Integer j = anArr1.Lower();
- for(;;) {
- aValueStr2 += TCollection_AsciiString(anArr1.Value(j));
- if (j >= anArr1.Upper()) break;
- aValueStr2 += ' ';
- j++;
- }
+ for(;;) {
+ aValueStr2 += TCollection_AsciiString(anArr1.Value(j));
+ if (j >= anArr1.Upper()) break;
+ aValueStr2 += ' ';
+ j++;
+ }
aCurTarget.setAttribute(::Value(), aValueStr2.ToCString());
}
//key
const TCollection_ExtendedString aValueStr =
- itr.Key() + ' ' + TCollection_ExtendedString(aLen);// key - Num_of_Arr_elements;
+ itr.Key() + ' ' + TCollection_ExtendedString(aLen);// key - Num_of_Arr_elements;
XmlObjMgt_Element aCurTarget = aDoc.createElement( ::ExtString() );
XmlObjMgt::SetExtendedString( aCurTarget, aValueStr); //key
anElement.appendChild( aCurTarget );
TCollection_AsciiString aValueStr2;
Standard_Integer j = anArr1.Lower();
for(;;) {
- char aValueChar[32];
- Sprintf(aValueChar, "%.15g", anArr1.Value(j));
- TCollection_AsciiString aValueStr3(aValueChar);
- aValueStr2 += aValueStr3;
- if (j >= anArr1.Upper()) break;
- aValueStr2 += ' ';
- j++;
+ char aValueChar[32];
+ Sprintf(aValueChar, "%.15g", anArr1.Value(j));
+ TCollection_AsciiString aValueStr3(aValueChar);
+ aValueStr2 += aValueStr3;
+ if (j >= anArr1.Upper()) break;
+ aValueStr2 += ' ';
+ j++;
}
aCurTarget.setAttribute(::Value(), aValueStr2.ToCString());
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_NamedDataDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_NamedDataDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_NoteBook.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_NoteBookDriver::XmlMDataStd_NoteBookDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_NoteBookDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_NoteBookDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
//AGV 150202: Changed prototype XmlObjMgt::SetStringValue()
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_ErrorHandler.hxx>
#include <Standard_OutOfMemory.hxx>
//=======================================================================
XmlMDataStd_RealArrayDriver::XmlMDataStd_RealArrayDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
TCollection_ExtendedString("Cannot retrieve the first index"
" for RealArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for RealArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve array of real members"
" for RealArray attribute from Integer \"")
+ aString + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
} else {
TCollection_ExtendedString("Cannot retrieve real member"
" for RealArray attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aRealArray->SetValue(ind, aValue);
TCollection_ExtendedString("Cannot retrieve the isDelta value"
" for RealArray attribute as \"")
+ aDeltaValue + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
else
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_RealArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_RealArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
//AGV 150202: Changed prototype XmlObjMgt::SetStringValue()
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Real.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_RealDriver::XmlMDataStd_RealDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve Real attribute from \"")
+ aRealStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_RealDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_RealDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TColStd_ListIteratorOfListOfReal.hxx>
//function : XmlMDataStd_RealListDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_RealListDriver::XmlMDataStd_RealListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_RealListDriver::XmlMDataStd_RealListDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
TCollection_ExtendedString("Cannot retrieve the first index"
" for RealList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for RealList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve array of real members"
" for RealList attribute from Integer \"")
+ aString + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
}
TCollection_ExtendedString("Cannot retrieve real member"
" for RealList attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aRealList->Append(aValue);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_RealListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_RealListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <LDOM_MemManager.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ReferenceArray.hxx>
//function : XmlMDataStd_ReferenceArrayDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_ReferenceArrayDriver::XmlMDataStd_ReferenceArrayDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_ReferenceArrayDriver::XmlMDataStd_ReferenceArrayDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
TCollection_ExtendedString("Cannot retrieve the first index"
" for ReferenceArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for ReferenceArray attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
{
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve a Array of reference");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aValueStr = XmlObjMgt::GetStringValue( *aCurElement );
if (aValueStr == NULL)
{
- WriteMessage ("Cannot retrieve reference string from element");
+ myMessageDriver->Send ("Cannot retrieve reference string from element", Message_Fail);
return Standard_False;
}
TCollection_AsciiString anEntry;
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Cannot retrieve reference from \"")
+ aValueStr + '\"';
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
// Find label by entry
aValueStr = XmlObjMgt::GetStringValue( *aCurElement );
if (aValueStr == NULL)
{
- WriteMessage ("Cannot retrieve reference string from element");
+ myMessageDriver->Send ("Cannot retrieve reference string from element", Message_Fail);
return Standard_False;
}
TCollection_AsciiString anEntry;
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Cannot retrieve reference from \"")
+ aValueStr + '\"';
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
// Find label by entry
TDF_Label L = aReferenceArray->Label();
if (L.IsNull())
{
- WriteMessage ("Label of a ReferenceArray is Null.");
+ myMessageDriver->Send ("Label of a ReferenceArray is Null.", Message_Fail);
return;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_ReferenceArrayDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_ReferenceArrayDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <LDOM_MemManager.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_ReferenceList.hxx>
//function : XmlMDataStd_ReferenceListDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_ReferenceListDriver::XmlMDataStd_ReferenceListDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_ReferenceListDriver::XmlMDataStd_ReferenceListDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
TCollection_ExtendedString("Cannot retrieve the first index"
" for ReferenceList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve the last index"
" for ReferenceList attribute as \"")
+ aFirstIndex + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
{
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve a list of reference");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aValueStr = XmlObjMgt::GetStringValue( *aCurElement );
if (aValueStr == NULL)
{
- WriteMessage ("Cannot retrieve reference string from element");
+ myMessageDriver->Send ("Cannot retrieve reference string from element", Message_Fail);
return Standard_False;
}
TCollection_AsciiString anEntry;
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Cannot retrieve reference from \"")
+ aValueStr + '\"';
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
// Find label by entry
aValueStr = XmlObjMgt::GetStringValue( *aCurElement );
if (aValueStr == NULL)
{
- WriteMessage ("Cannot retrieve reference string from element");
+ myMessageDriver->Send ("Cannot retrieve reference string from element", Message_Fail);
return Standard_False;
}
TCollection_AsciiString anEntry;
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Cannot retrieve reference from \"")
+ aValueStr + '\"';
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
// Find label by entry
TDF_Label L = aReferenceList->Label();
if (L.IsNull())
{
- WriteMessage ("Label of a ReferenceList is Null.");
+ myMessageDriver->Send ("Label of a ReferenceList is Null.", Message_Fail);
return;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_ReferenceListDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_ReferenceListDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Relation.hxx>
#include <TDataStd_Variable.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_RelationDriver::XmlMDataStd_RelationDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
TCollection_ExtendedString aString;
if (!XmlObjMgt::GetExtendedString (theSource, aString))
{
- WriteMessage("error retrieving ExtendedString for type TDataStd_Relation");
+ myMessageDriver->Send("error retrieving ExtendedString for type TDataStd_Relation", Message_Fail);
return Standard_False;
}
aC->SetRelation(aString);
aMsgString = TCollection_ExtendedString
("XmlMDataStd_RelationDriver: Cannot retrieve reference on first variable from \"")
+ aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
Standard_Integer i = 1;
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_RelationDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_RelationDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Tick.hxx>
#include <TDF_Attribute.hxx>
//function : XmlMDataStd_TickDriver
//purpose : Constructor
//=======================================================================
-XmlMDataStd_TickDriver::XmlMDataStd_TickDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataStd_TickDriver::XmlMDataStd_TickDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_TickDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_TickDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_TreeNode.hxx>
//=======================================================================
XmlMDataStd_TreeNodeDriver::XmlMDataStd_TreeNodeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_TreeNodeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_TreeNodeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_UAttribute.hxx>
#include <TDF_Attribute.hxx>
//=======================================================================
XmlMDataStd_UAttributeDriver::XmlMDataStd_UAttributeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
theSource.Element().getAttribute (::GuidString());
Standard_CString aGuidStr = (Standard_CString)aGuidDomStr.GetString();
if (aGuidStr[0] == '\0') {
- WriteMessage ("error retrieving GUID for type TDataStd_UAttribute");
+ myMessageDriver->Send ("error retrieving GUID for type TDataStd_UAttribute", Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_UAttributeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_UAttributeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Variable.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataStd_VariableDriver::XmlMDataStd_VariableDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataStd_VariableDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataStd_VariableDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// modified 20.04.2009 Sergey Zaritchny
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <XmlMDataXtd.hxx>
#include <XmlMDataXtd_AxisDriver.hxx>
#include <XmlMDataXtd_ConstraintDriver.hxx>
//purpose :
//=======================================================================
void XmlMDataXtd::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& anMsgDrv)
+ const Handle(Message_Messenger)& anMsgDrv)
{
aDriverTable->AddDriver(new XmlMDataXtd_ShapeDriver (anMsgDrv));
aDriverTable->AddDriver(new XmlMDataXtd_PointDriver (anMsgDrv));
#include <Standard_Integer.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMDataXtd_AxisDriver;
class XmlMDataXtd_ShapeDriver;
class XmlMDataXtd_PointDriver;
//! Adds the attribute drivers to <aDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& anMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(Message_Messenger)& anMsgDrv);
Standard_EXPORT static void SetDocumentVersion (const Standard_Integer DocVersion);
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Axis.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_AxisDriver::XmlMDataXtd_AxisDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_AxisDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_AxisDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Real.hxx>
#include <TDataXtd_Constraint.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_ConstraintDriver::XmlMDataXtd_ConstraintDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
("XmlMDataXtd_ConstraintDriver: "
"Cannot retrieve reference on Integer attribute from \"")
+ aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (aNb > 0)
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_ConstraintDriver: Cannot retrieve reference on first Geometry from \"")
+ aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
Standard_Integer i = 1;
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_ConstraintDriver: Cannot retrieve reference on Plane from \"")
+ aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
Handle(TNaming_NamedShape) aTPlane;
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_ConstraintDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_ConstraintDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Geometry.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_GeometryDriver::XmlMDataXtd_GeometryDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
XmlObjMgt_DOMString aType = theSource.Element().getAttribute(::TypeString());
TDataXtd_GeometryEnum aTypeEnum;
if (GeometryTypeEnum (aType, aTypeEnum) == Standard_False) {
- WriteMessage ("TDataXtd_GeometryEnum; "
- "string value without enum term equivalence");
+ myMessageDriver->Send ("TDataXtd_GeometryEnum; "
+ "string value without enum term equivalence", Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_GeometryDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_GeometryDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataStd_Integer.hxx>
#include <TDataStd_Real.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_PatternStdDriver::XmlMDataXtd_PatternStdDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_PatternStdDriver: Bad or undefined value for a \"")
+ ::SignatureString() + "\" attribute (must be integer)";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_PatternStdDriver: Bad or undefined value for a \"")
+ ::Axis1RefString() + "\" attribute (must be integer)";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (theRelocTable.IsBound(aNb))
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_PatternStdDriver: Bad or undefined value for a \"")
+ ::Value1RefString() + "\" attribute (must be integer)";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (theRelocTable.IsBound(aNb))
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_PatternStdDriver: Bad or undefined value for a \"")
+ ::NbInstances1RefString() + "\" attribute (must be integer)";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (theRelocTable.IsBound(aNb))
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_PatternStdDriver: Bad or undefined value for a \"")
+ ::Axis2RefString() + "\" attribute (must be integer)";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (theRelocTable.IsBound(aNb))
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_PatternStdDriver: Bad or undefined value for a \"")
+ ::Value2RefString() + "\" attribute (must be integer)";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (theRelocTable.IsBound(aNb))
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_PatternStdDriver: Bad or undefined value for a \"")
+ ::NbInstances2RefString() + "\" attribute (must be integer)";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (theRelocTable.IsBound(aNb))
aMsgString = TCollection_ExtendedString
("XmlMDataXtd_PatternStdDriver: Bad or undefined value for a \"")
+ ::MirrorRefString() + "\" attribute (must be integer)";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (theRelocTable.IsBound(aNb))
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_PatternStdDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_PatternStdDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Placement.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_PlacementDriver::XmlMDataXtd_PlacementDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_PlacementDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_PlacementDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Plane.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_PlaneDriver::XmlMDataXtd_PlaneDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_PlaneDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_PlaneDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Point.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_PointDriver::XmlMDataXtd_PointDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_PointDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_PointDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <XmlMDataXtd_PositionDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <gp_XYZ.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Position.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_PositionDriver::XmlMDataXtd_PositionDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
XmlObjMgt_DOMString aPosStr = XmlObjMgt::GetStringValue(theSource.Element());
if (aPosStr == NULL)
{
- WriteMessage ("Cannot retrieve position string from element");
+ myMessageDriver->Send ("Cannot retrieve position string from element", Message_Fail);
return Standard_False;
}
TCollection_ExtendedString
("Cannot retrieve X coordinate for TDataXtd_Position attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aPos.SetX(aValue);
TCollection_ExtendedString
("Cannot retrieve Y coordinate for TDataXtd_Position attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aPos.SetY(aValue);
TCollection_ExtendedString
("Cannot retrieve Z coordinate for TDataXtd_Position attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aPos.SetZ(aValue);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_PositionDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_PositionDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <XmlMDataXtd_PresentationDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XmlObjMgt.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_PresentationDriver::XmlMDataXtd_PresentationDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
aDOMStr = anElem.getAttribute(::GuidString());
if (aDOMStr == NULL)
{
- WriteMessage("Cannot retrieve guid string from attribute");
+ myMessageDriver->Send("Cannot retrieve guid string from attribute", Message_Fail);
return Standard_False;
}
Standard_CString aGuidStr = (Standard_CString) aDOMStr.GetString();
{
aMessageString = TCollection_ExtendedString
("Cannot retrieve Integer value from \"") + aDOMStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aTPrs->SetColor((Quantity_NameOfColor)anIValue);
{
aMessageString = TCollection_ExtendedString
("Cannot retrieve Integer value from \"") + aDOMStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aTPrs->SetMaterialIndex(anIValue);
{
aMessageString = TCollection_ExtendedString
("Cannot retrieve Real value from \"") + aDOMStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aTPrs->SetTransparency(aValue);
{
aMessageString = TCollection_ExtendedString
("Cannot retrieve Real value from \"") + aDOMStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aTPrs->SetWidth(aValue);
{
aMessageString = TCollection_ExtendedString
("Cannot retrieve Integer value from \"") + aDOMStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aTPrs->SetMode(anIValue);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_PresentationDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_PresentationDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDataXtd_Shape.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMDataXtd_ShapeDriver::XmlMDataXtd_ShapeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_ShapeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_ShapeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
#include <XmlMDataXtd_TriangulationDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <NCollection_LocalArray.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
//function : XmlMDataXtd_TriangulationDriver
//purpose : Constructor
//=======================================================================
-XmlMDataXtd_TriangulationDriver::XmlMDataXtd_TriangulationDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMDataXtd_TriangulationDriver::XmlMDataXtd_TriangulationDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDataXtd_TriangulationDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDataXtd_TriangulationDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <XmlMDF_ADriverTable.hxx>
#include <XmlMDocStd.hxx>
#include <XmlMDocStd_XLinkDriver.hxx>
//purpose :
//=======================================================================
void XmlMDocStd::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& aMessageDriver)
+ const Handle(Message_Messenger)& aMessageDriver)
{
aDriverTable->AddDriver (new XmlMDocStd_XLinkDriver(aMessageDriver));
}
#include <Standard_Handle.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMDocStd_XLinkDriver;
//! Adds the attribute drivers to <aDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(Message_Messenger)& theMessageDriver);
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
//purpose : Constructor
//=======================================================================
XmlMDocStd_XLinkDriver::XmlMDocStd_XLinkDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
if (anXPath == NULL)
{
- WriteMessage ("XLink: Cannot retrieve reference string from element");
+ myMessageDriver->Send ("XLink: Cannot retrieve reference string from element", Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Cannot retrieve XLink reference from \"")
+ anXPath + '\"';
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMDocStd_XLinkDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMDocStd_XLinkDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <XmlMDF_ADriverTable.hxx>
#include <XmlMFunction.hxx>
#include <XmlMFunction_FunctionDriver.hxx>
//purpose :
//=======================================================================
void XmlMFunction::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& aMessageDriver)
+ const Handle(Message_Messenger)& aMessageDriver)
{
aDriverTable->AddDriver(new XmlMFunction_FunctionDriver(aMessageDriver));
aDriverTable->AddDriver(new XmlMFunction_ScopeDriver(aMessageDriver));
#include <Standard_Handle.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMFunction_FunctionDriver;
class XmlMFunction_ScopeDriver;
class XmlMFunction_GraphNodeDriver;
//! Adds the attribute storage drivers to <aDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(Message_Messenger)& theMessageDriver);
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Tool.hxx>
//purpose : Constructor
//=======================================================================
XmlMFunction_FunctionDriver::XmlMFunction_FunctionDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
Standard_CString aGuidStr = (Standard_CString)aGuidDomStr.GetString();
if (aGuidStr[0] == '\0')
{
- WriteMessage ("error retrieving GUID for type TFunction_Function");
+ myMessageDriver->Send ("error retrieving GUID for type TFunction_Function", Message_Fail);
return Standard_False;
}
aF->SetDriverGUID(aGuidStr);
TCollection_ExtendedString
("Cannot retrieve failure number for TFunction_Function attribute from \"")
+ aFStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aF->SetFailure(aValue);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMFunction_FunctionDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMFunction_FunctionDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
#include <TDF_Attribute.hxx>
//function : XmlMFunction_GraphNodeDriver
//purpose : Constructor
//=======================================================================
-XmlMFunction_GraphNodeDriver::XmlMFunction_GraphNodeDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMFunction_GraphNodeDriver::XmlMFunction_GraphNodeDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
//purpose : persistent -> transient (retrieve)
//=======================================================================
Standard_Boolean XmlMFunction_GraphNodeDriver::Paste(const XmlObjMgt_Persistent& theSource,
- const Handle(TDF_Attribute)& theTarget,
- XmlObjMgt_RRelocationTable& ) const
+ const Handle(TDF_Attribute)& theTarget,
+ XmlObjMgt_RRelocationTable& ) const
{
Handle(TFunction_GraphNode) G = Handle(TFunction_GraphNode)::DownCast(theTarget);
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve the last index"
" for previous functions of GraphNode attribute");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve integer member"
" for previous functions of GraphNode attribute");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
G->AddPrevious(anInteger);
TCollection_ExtendedString("Cannot retrieve integer member"
" for previous functions of GraphNode attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
G->AddPrevious(aValue);
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve the last index"
" for next functions of GraphNode attribute");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aLastIndNext += aLastIndPrev;
TCollection_ExtendedString("Cannot retrieve integer member"
" for next functions of GraphNode attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
if (ind < aFirstIndNext)
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve the execution status"
" for GraphNode attribute");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
G->SetStatus((TFunction_ExecutionStatus) exec);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMFunction_GraphNodeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMFunction_GraphNodeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <LDOM_MemManager.hxx>
#include <Standard_Type.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
//function : XmlMFunction_ScopeDriver
//purpose : Constructor
//=======================================================================
-XmlMFunction_ScopeDriver::XmlMFunction_ScopeDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMFunction_ScopeDriver::XmlMFunction_ScopeDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{
//purpose : persistent -> transient (retrieve)
//=======================================================================
Standard_Boolean XmlMFunction_ScopeDriver::Paste(const XmlObjMgt_Persistent& theSource,
- const Handle(TDF_Attribute)& theTarget,
- XmlObjMgt_RRelocationTable& ) const
+ const Handle(TDF_Attribute)& theTarget,
+ XmlObjMgt_RRelocationTable& ) const
{
Handle(TFunction_Scope) S = Handle(TFunction_Scope)::DownCast(theTarget);
TColStd_ListOfInteger IDs;
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve the last index"
" for Scope attribute");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
nbIDs = aLastInd - aFirstInd + 1;
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve integer member"
" for Scope attribute as \"");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
IDs.Append(anInteger);
TCollection_ExtendedString("Cannot retrieve integer member"
" for Scope attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
IDs.Append(aValue);
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve the last index"
" for Scope attribute");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
nbLabels = aLastInd - aFirstInd + 1;
{
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve an array of labels");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Cannot retrieve reference from \"")
+ aValueStr + '\"';
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
// Find label by entry
aValueStr = XmlObjMgt::GetStringValue( *aCurElement );
if (aValueStr == NULL)
{
- WriteMessage ("Cannot retrieve reference string from element");
+ myMessageDriver->Send ("Cannot retrieve reference string from element", Message_Fail);
return Standard_False;
}
TCollection_AsciiString anEntry;
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Cannot retrieve reference from \"")
+ aValueStr + '\"';
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
// Find label by entry
{
TCollection_ExtendedString aMessage =
TCollection_ExtendedString ("Numbers of IDs & Labels are different");
- WriteMessage (aMessage);
+ myMessageDriver->Send (aMessage, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMFunction_ScopeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMFunction_ScopeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <XmlMDF_ADriverTable.hxx>
#include <XmlMNaming.hxx>
#include <XmlMNaming_NamedShapeDriver.hxx>
//purpose :
//=======================================================================
void XmlMNaming::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& aMessageDriver)
+ const Handle(Message_Messenger)& aMessageDriver)
{
aDriverTable->AddDriver (new XmlMNaming_NamedShapeDriver(aMessageDriver));
aDriverTable->AddDriver (new XmlMNaming_NamingDriver(aMessageDriver));
#include <Standard_Integer.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMNaming_NamedShapeDriver;
class XmlMNaming_NamingDriver;
class XmlMNaming_Shape1;
//! Adds the attribute drivers to <aDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& aMessageDriver);
+ Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(Message_Messenger)& aMessageDriver);
Standard_EXPORT static void SetDocumentVersion (const Standard_Integer DocVersion);
//AGV 150202: Changed prototype LDOM_Node::getOwnerDocument()
#include <BRepTools.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <LDOM_OSStream.hxx>
#include <LDOM_Text.hxx>
#include <Standard_SStream.hxx>
//=======================================================================
XmlMNaming_NamedShapeDriver::XmlMNaming_NamedShapeDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: XmlMDF_ADriver (theMessageDriver, NULL),
myShapeSet (Standard_False) // triangles mode
{}
if ( evol != TNaming_PRIMITIVE && anOldPShape.Element() != NULL )
{
if (::doTranslate (anOldPShape, anOldShape, aShapeSet)) {
- WriteMessage ("NamedShapeDriver: Error reading a shape from array");
+ myMessageDriver->Send ("NamedShapeDriver: Error reading a shape from array", Message_Fail);
return Standard_False;
}
}
if (evol != TNaming_DELETE && aNewPShape.Element() != NULL )
{
if (::doTranslate (aNewPShape, aNewShape, aShapeSet)) {
- WriteMessage ("NamedShapeDriver: Error reading a shape from array");
+ myMessageDriver->Send ("NamedShapeDriver: Error reading a shape from array", Message_Fail);
return Standard_False;
}
}
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
#include <XmlObjMgt_Element.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
class TopTools_LocationSet;
public:
- Standard_EXPORT XmlMNaming_NamedShapeDriver(const Handle(CDM_MessageDriver)& aMessageDriver);
+ Standard_EXPORT XmlMNaming_NamedShapeDriver(const Handle(Message_Messenger)& aMessageDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Tool.hxx>
//purpose : Constructor
//=======================================================================
XmlMNaming_NamingDriver::XmlMNaming_NamingDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, NULL)
{}
aMsgString = TCollection_ExtendedString
("XmlMNaming_NamingDriver: Cannot retrieve reference "
"on first Argument from \"") + aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
while (aNb > 0)
aMsgString = TCollection_ExtendedString
("XmlMNaming_NamingDriver: Cannot retrieve reference "
"on StopNamedShape from \"") + aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
if (aNb > 0)
aMsgString = TCollection_ExtendedString
("XmlMNaming_NamingDriver: Cannot retrieve "
"integer value of Index from \"") + aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
aNgName.Index(aNb);
if(XmlMNaming::DocumentVersion() > 3) {
XmlObjMgt_DOMString aDomEntry = anElem.getAttribute(::ContextLabelString());
if (aDomEntry != NULL)
- {
- TCollection_AsciiString anEntry;
- if (XmlObjMgt::GetTagEntryString (aDomEntry, anEntry) == Standard_False)
- {
- TCollection_ExtendedString aMessage =
- TCollection_ExtendedString ("Cannot retrieve Entry from \"")
- + aDomEntry + '\"';
- WriteMessage (aMessage);
- return Standard_False;
- }
-
- // find label by entry
- TDF_Label tLab; // Null label.
- if (anEntry.Length() > 0) {
- TDF_Tool::Label(aNg->Label().Data(), anEntry, tLab, Standard_True);
- aNgName.ContextLabel(tLab);
+ {
+ TCollection_AsciiString anEntry;
+ if (XmlObjMgt::GetTagEntryString (aDomEntry, anEntry) == Standard_False)
+ {
+ TCollection_ExtendedString aMessage =
+ TCollection_ExtendedString ("Cannot retrieve Entry from \"")
+ + aDomEntry + '\"';
+ myMessageDriver->Send (aMessage, Message_Fail);
+ return Standard_False;
+ }
+
+ // find label by entry
+ TDF_Label tLab; // Null label.
+ if (anEntry.Length() > 0) {
+ TDF_Tool::Label(aNg->Label().Data(), anEntry, tLab, Standard_True);
+ aNgName.ContextLabel(tLab);
#ifdef OCCT_DEBUG
- cout << "Retrieving Context Label = " << anEntry.ToCString() <<endl;
+ cout << "Retrieving Context Label = " << anEntry.ToCString() <<endl;
#endif
- }
}
+ }
#ifdef OCCT_DEBUG
else
cout << "Retrieving Context Label is NULL" <<endl;
aMsgString = TCollection_ExtendedString
("XmlMNaming_NamingDriver: Cannot retrieve "
"integer value of orientation from \"") + aDOMStr + "\"";
- WriteMessage (aMsgString);
+ myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
aNgName.Orientation((TopAbs_Orientation)aNb);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMNaming_NamingDriver(const Handle(CDM_MessageDriver)& aMessageDriver);
+ Standard_EXPORT XmlMNaming_NamingDriver(const Handle(Message_Messenger)& aMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <TNaming_NamedShape.hxx>
#include <XmlMDF_ADriverTable.hxx>
#include <XmlMNaming_NamedShapeDriver.hxx>
//purpose :
//=======================================================================
void XmlMXCAFDoc::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& anMsgDrv)
+ const Handle(Message_Messenger)& anMsgDrv)
{
aDriverTable -> AddDriver (new XmlMXCAFDoc_AreaDriver (anMsgDrv));
aDriverTable -> AddDriver (new XmlMXCAFDoc_CentroidDriver (anMsgDrv));
#include <Standard_Handle.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlMXCAFDoc_AreaDriver;
class XmlMXCAFDoc_CentroidDriver;
class XmlMXCAFDoc_ColorDriver;
//! Adds the attribute drivers to <aDriverTable>.
- Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& anMsgDrv);
+ Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(Message_Messenger)& anMsgDrv);
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_Area.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_AreaDriver::XmlMXCAFDoc_AreaDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "Area")
{}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve Area attribute from \"")
+ aRealStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_AreaDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_AreaDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_AssemblyItemRef.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_AssemblyItemRefDriver::XmlMXCAFDoc_AssemblyItemRefDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_AssemblyItemRefDriver::XmlMXCAFDoc_AssemblyItemRefDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_AssemblyItemRef)->Name())
{
}
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
{
public:
- Standard_EXPORT XmlMXCAFDoc_AssemblyItemRefDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_AssemblyItemRefDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <gp_XYZ.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_CentroidDriver::XmlMXCAFDoc_CentroidDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "Centroid")
{}
XmlObjMgt_DOMString aPosStr = XmlObjMgt::GetStringValue(theSource.Element());
if (aPosStr == NULL)
{
- WriteMessage ("Cannot retrieve position string from element");
+ myMessageDriver->Send ("Cannot retrieve position string from element", Message_Fail);
return Standard_False;
}
TCollection_ExtendedString
("Cannot retrieve X coordinate for XCAFDoc_Centroid attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aPos.SetX(aValue);
TCollection_ExtendedString
("Cannot retrieve Y coordinate for XCAFDoc_Centroid attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aPos.SetY(aValue);
TCollection_ExtendedString
("Cannot retrieve Z coordinate for XCAFDoc_Centroid attribute as \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aPos.SetZ(aValue);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_CentroidDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_CentroidDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_ClippingPlaneTool.hxx>
//purpose :
//=======================================================================
XmlMXCAFDoc_ClippingPlaneToolDriver::XmlMXCAFDoc_ClippingPlaneToolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "ClippingPlaneTool")
{
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
{
public:
- Standard_EXPORT XmlMXCAFDoc_ClippingPlaneToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_ClippingPlaneToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_Color.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_ColorDriver::XmlMXCAFDoc_ColorDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "Color")
{}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve Color attribute from \"")
+ anIntStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_ColorDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_ColorDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_ColorTool.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_ColorToolDriver::XmlMXCAFDoc_ColorToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_ColorToolDriver::XmlMXCAFDoc_ColorToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "ColorTool")
{
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_ColorToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_ColorToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_DatumDriver::XmlMXCAFDoc_DatumDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "Datum")
{}
if (aNameStr == NULL) {
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve Datum attribute");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
if ( aDescrStr == NULL || anIdStr == NULL ) {
TCollection_ExtendedString aMessageString
("Cannot retrieve Datum attribute description or identification");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_DatumDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_DatumDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TColStd_HArray1OfReal.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_DimTolDriver::XmlMXCAFDoc_DimTolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "DimTol")
{}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve DimTol attribute kind from \"")
+ anIntStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
if ( aNameStr == NULL || aDescrStr == NULL ) {
TCollection_ExtendedString aMessageString
("Cannot retrieve DimTol attribute name or description");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
else if (!aFirstIndex.GetInteger(aFirstInd)) {
TCollection_ExtendedString aMessageString
("Cannot retrieve the DimTol first index for real array ");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
XmlObjMgt_DOMString aLastIndex = anElement.getAttribute(::LastIndexString());
else if (!aLastIndex.GetInteger(aLastInd)) {
TCollection_ExtendedString aMessageString
("Cannot retrieve the DimTol last index for real array ");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
TCollection_ExtendedString("Cannot retrieve real member"
" for real array \"")
+ aValueStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aHArr->SetValue(ind, aValue);
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_DimTolDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_DimTolDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_DimTolTool.hxx>
//purpose :
//=======================================================================
XmlMXCAFDoc_DimTolToolDriver::XmlMXCAFDoc_DimTolToolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "DimTolTool")
{
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_DimTolToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_DimTolToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_DocumentTool.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_DocumentToolDriver::XmlMXCAFDoc_DocumentToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_DocumentToolDriver::XmlMXCAFDoc_DocumentToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "DocumentTool")
{
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_DocumentToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_DocumentToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_PCharacter.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_GraphNodeDriver::XmlMXCAFDoc_GraphNodeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "GraphNode")
{}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_GraphNodeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_GraphNodeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_LayerTool.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_LayerToolDriver::XmlMXCAFDoc_LayerToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_LayerToolDriver::XmlMXCAFDoc_LayerToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "LayerTool")
{
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_LayerToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_LayerToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TopLoc_Datum3D.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_LocationDriver::XmlMXCAFDoc_LocationDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "Location")
, myLocations(0)
{}
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
#include <XmlObjMgt_Element.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
class TopLoc_Location;
public:
- Standard_EXPORT XmlMXCAFDoc_LocationDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_LocationDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
#include <TDF_Attribute.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_MaterialDriver::XmlMXCAFDoc_MaterialDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "Material")
{}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve Material attribute density from \"")
+ aRealStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
aDensNameStr == NULL ||aDensTypeStr == NULL ) {
TCollection_ExtendedString aMessageString
("Cannot retrieve Material attribute name or description");
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_MaterialDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_MaterialDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_MaterialTool.hxx>
//purpose :
//=======================================================================
XmlMXCAFDoc_MaterialToolDriver::XmlMXCAFDoc_MaterialToolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "MaterialTool")
{
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_MaterialToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_MaterialToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_NoteBalloon.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_NoteBalloonDriver::XmlMXCAFDoc_NoteBalloonDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_NoteBalloonDriver::XmlMXCAFDoc_NoteBalloonDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMXCAFDoc_NoteCommentDriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_NoteBalloon)->Name())
{
}
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_NoteBalloonDriver::XmlMXCAFDoc_NoteBalloonDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+XmlMXCAFDoc_NoteBalloonDriver::XmlMXCAFDoc_NoteBalloonDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName)
: XmlMXCAFDoc_NoteCommentDriver(theMsgDriver, theName)
{
{
public:
- Standard_EXPORT XmlMXCAFDoc_NoteBalloonDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_NoteBalloonDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
protected:
- XmlMXCAFDoc_NoteBalloonDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+ XmlMXCAFDoc_NoteBalloonDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName);
};
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_NoteBinData.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_NoteBinDataDriver::XmlMXCAFDoc_NoteBinDataDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_NoteBinDataDriver::XmlMXCAFDoc_NoteBinDataDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMXCAFDoc_NoteDriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_NoteBinData)->Name())
{
}
{
public:
- Standard_EXPORT XmlMXCAFDoc_NoteBinDataDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_NoteBinDataDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_NoteComment.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_NoteCommentDriver::XmlMXCAFDoc_NoteCommentDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_NoteCommentDriver::XmlMXCAFDoc_NoteCommentDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMXCAFDoc_NoteDriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_NoteComment)->Name())
{
}
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_NoteCommentDriver::XmlMXCAFDoc_NoteCommentDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+XmlMXCAFDoc_NoteCommentDriver::XmlMXCAFDoc_NoteCommentDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName)
: XmlMXCAFDoc_NoteDriver(theMsgDriver, theName)
{
{
public:
- Standard_EXPORT XmlMXCAFDoc_NoteCommentDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_NoteCommentDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
protected:
- XmlMXCAFDoc_NoteCommentDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+ XmlMXCAFDoc_NoteCommentDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName);
};
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_Note.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_NoteDriver::XmlMXCAFDoc_NoteDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+XmlMXCAFDoc_NoteDriver::XmlMXCAFDoc_NoteDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName)
: XmlMDF_ADriver(theMsgDriver, theName)
{
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
protected:
- XmlMXCAFDoc_NoteDriver(const Handle(CDM_MessageDriver)& theMsgDriver,
+ XmlMXCAFDoc_NoteDriver(const Handle(Message_Messenger)& theMsgDriver,
Standard_CString theName);
};
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_NotesTool.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_NotesToolDriver::XmlMXCAFDoc_NotesToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_NotesToolDriver::XmlMXCAFDoc_NotesToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver(theMsgDriver, STANDARD_TYPE(XCAFDoc_NotesTool)->Name())
{
}
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
{
public:
- Standard_EXPORT XmlMXCAFDoc_NotesToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_NotesToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_ShapeTool.hxx>
//function :
//purpose :
//=======================================================================
-XmlMXCAFDoc_ShapeToolDriver::XmlMXCAFDoc_ShapeToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver)
+XmlMXCAFDoc_ShapeToolDriver::XmlMXCAFDoc_ShapeToolDriver(const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "ShapeTool")
{
}
//purpose :
//=======================================================================
Standard_Boolean XmlMXCAFDoc_ShapeToolDriver::Paste(const XmlObjMgt_Persistent& /*theSource*/,
- const Handle(TDF_Attribute)& /*theTarget*/,
- XmlObjMgt_RRelocationTable& /*theRelocTable*/) const
+ const Handle(TDF_Attribute)& /*theTarget*/,
+ XmlObjMgt_RRelocationTable& /*theRelocTable*/) const
{
return Standard_True;
}
//purpose :
//=======================================================================
void XmlMXCAFDoc_ShapeToolDriver::Paste(const Handle(TDF_Attribute)& /*theSource*/,
- XmlObjMgt_Persistent& /*theTarget*/,
- XmlObjMgt_SRelocationTable& /*theRelocTable*/) const
+ XmlObjMgt_Persistent& /*theTarget*/,
+ XmlObjMgt_SRelocationTable& /*theRelocTable*/) const
{
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_ShapeToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_ShapeToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_ViewTool.hxx>
//purpose :
//=======================================================================
XmlMXCAFDoc_ViewToolDriver::XmlMXCAFDoc_ViewToolDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "ViewTool")
{
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_ViewToolDriver(const Handle(CDM_MessageDriver)& theMsgDriver);
+ Standard_EXPORT XmlMXCAFDoc_ViewToolDriver(const Handle(Message_Messenger)& theMsgDriver);
Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <XCAFDoc_Volume.hxx>
//purpose : Constructor
//=======================================================================
XmlMXCAFDoc_VolumeDriver::XmlMXCAFDoc_VolumeDriver
- (const Handle(CDM_MessageDriver)& theMsgDriver)
+ (const Handle(Message_Messenger)& theMsgDriver)
: XmlMDF_ADriver (theMsgDriver, "xcaf", "Volume")
{}
TCollection_ExtendedString aMessageString =
TCollection_ExtendedString("Cannot retrieve Volume attribute from \"")
+ aRealStr + "\"";
- WriteMessage (aMessageString);
+ myMessageDriver->Send (aMessageString, Message_Fail);
return Standard_False;
}
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
-class CDM_MessageDriver;
+class Message_Messenger;
class TDF_Attribute;
class XmlObjMgt_Persistent;
public:
- Standard_EXPORT XmlMXCAFDoc_VolumeDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
+ Standard_EXPORT XmlMXCAFDoc_VolumeDriver(const Handle(Message_Messenger)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
//purpose :
//=======================================================================
void XmlTObjDrivers::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& anMsgDrv)
+ const Handle(Message_Messenger)& anMsgDrv)
{
aDriverTable -> AddDriver (new XmlTObjDrivers_ModelDriver (anMsgDrv));
aDriverTable -> AddDriver (new XmlTObjDrivers_ObjectDriver (anMsgDrv));
#include <Standard_GUID.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class TDocStd_Application;
//! Class for registering storage/retrieval drivers for TObj XML persistence
Standard_EXPORT static void AddDrivers
(const Handle(XmlMDF_ADriverTable)& aDriverTable,
- const Handle(CDM_MessageDriver)& anMsgDrv);
+ const Handle(Message_Messenger)& anMsgDrv);
};
Handle(XmlMDF_ADriverTable)
XmlTObjDrivers_DocumentRetrievalDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDrv)
+ (const Handle(Message_Messenger)& theMsgDrv)
{
// Standard drivers
Handle(XmlMDF_ADriverTable) aTable = XmlLDrivers::AttributeDrivers (theMsgDrv);
// Constructor
Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
public:
// Declaration of CASCADE RTTI
Handle(XmlMDF_ADriverTable)
XmlTObjDrivers_DocumentStorageDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDrv)
+ (const Handle(Message_Messenger)& theMsgDrv)
{
// Standard drivers
Handle(XmlMDF_ADriverTable) aTable = XmlLDrivers::AttributeDrivers (theMsgDrv);
// Constructor
Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
public:
// Declaration of CASCADE RTTI
// The original implementation Copyright: (C) RINA S.p.A
#include <XmlTObjDrivers_IntSparseArrayDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <TDF_Attribute.hxx>
#include <XmlObjMgt_Persistent.hxx>
#include <TObj_TIntSparseArray.hxx>
//=======================================================================
XmlTObjDrivers_IntSparseArrayDriver::XmlTObjDrivers_IntSparseArrayDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: XmlMDF_ADriver( theMessageDriver, NULL)
{
}
public:
Standard_EXPORT XmlTObjDrivers_IntSparseArrayDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include "XmlTObjDrivers_ModelDriver.hxx"
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <XmlObjMgt_Persistent.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt.hxx>
//=======================================================================
XmlTObjDrivers_ModelDriver::XmlTObjDrivers_ModelDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: XmlMDF_ADriver( theMessageDriver, NULL)
{
}
aTModel->Set( aCurrentModel );
return Standard_True;
}
- WriteMessage("TObj_TModel retrieval: wrong model GUID");
+ myMessageDriver->Send("TObj_TModel retrieval: wrong model GUID", Message_Fail);
return Standard_False;
}
- WriteMessage("error retrieving ExtendedString for type TObj_TModel");
+ myMessageDriver->Send("error retrieving ExtendedString for type TObj_TModel", Message_Fail);
return Standard_False;
}
public:
Standard_EXPORT XmlTObjDrivers_ModelDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// The original implementation Copyright: (C) RINA S.p.A
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include "XmlTObjDrivers_ObjectDriver.hxx"
#include <TObj_TObject.hxx>
#include <TObj_Persistence.hxx>
//=======================================================================
XmlTObjDrivers_ObjectDriver::XmlTObjDrivers_ObjectDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: XmlMDF_ADriver( theMessageDriver, NULL)
{
}
Handle(TObj_TObject)::DownCast (Target) ->Set( anObject );
return Standard_True;
}
- WriteMessage("error retrieving ExtendedString for type TObj_TModel");
+ myMessageDriver->Send("error retrieving ExtendedString for type TObj_TModel", Message_Fail);
return Standard_False;
}
public:
Standard_EXPORT XmlTObjDrivers_ObjectDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include "XmlTObjDrivers_ReferenceDriver.hxx"
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <TDF_Tool.hxx>
#include <TDF_Attribute.hxx>
//=======================================================================
XmlTObjDrivers_ReferenceDriver::XmlTObjDrivers_ReferenceDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: XmlMDF_ADriver( theMessageDriver, NULL)
{
}
public:
Standard_EXPORT XmlTObjDrivers_ReferenceDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
#include <XmlTObjDrivers_XYZDriver.hxx>
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <TDF_Attribute.hxx>
#include <XmlObjMgt.hxx>
//=======================================================================
XmlTObjDrivers_XYZDriver::XmlTObjDrivers_XYZDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver)
+ (const Handle(Message_Messenger)& theMessageDriver)
: XmlMDF_ADriver( theMessageDriver, NULL)
{
}
public:
Standard_EXPORT XmlTObjDrivers_XYZDriver
- (const Handle(CDM_MessageDriver)& theMessageDriver);
+ (const Handle(Message_Messenger)& theMessageDriver);
// constructor
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <XmlDrivers.hxx>
#include <XmlMDF_ADriverTable.hxx>
//=======================================================================
Handle(XmlMDF_ADriverTable)
XmlXCAFDrivers_DocumentRetrievalDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDrv)
+ (const Handle(Message_Messenger)& theMsgDrv)
{
// Standard drivers
Handle(XmlMDF_ADriverTable) aTable = XmlDrivers::AttributeDrivers (theMsgDrv);
#include <XmlDrivers_DocumentRetrievalDriver.hxx>
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlXCAFDrivers_DocumentRetrievalDriver;
Standard_EXPORT XmlXCAFDrivers_DocumentRetrievalDriver();
- Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;
// commercial license or contractual agreement.
-#include <CDM_MessageDriver.hxx>
+#include <Message_Messenger.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <XmlDrivers.hxx>
//=======================================================================
Handle(XmlMDF_ADriverTable)
XmlXCAFDrivers_DocumentStorageDriver::AttributeDrivers
- (const Handle(CDM_MessageDriver)& theMsgDrv)
+ (const Handle(Message_Messenger)& theMsgDrv)
{
// Standard drivers
Handle(XmlMDF_ADriverTable) aTable = XmlDrivers::AttributeDrivers (theMsgDrv);
#include <XmlDrivers_DocumentStorageDriver.hxx>
class TCollection_ExtendedString;
class XmlMDF_ADriverTable;
-class CDM_MessageDriver;
+class Message_Messenger;
class XmlXCAFDrivers_DocumentStorageDriver;
Standard_EXPORT XmlXCAFDrivers_DocumentStorageDriver(const TCollection_ExtendedString& theCopyright);
- Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
+ Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(Message_Messenger)& theMsgDriver) Standard_OVERRIDE;