1 // Copyright (c) 1998-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
18 #include <OSD_OSDError.hxx>
19 #include <OSD_Printer.hxx>
20 #include <OSD_WhoAmI.hxx>
21 #include <Standard_ConstructionError.hxx>
22 #include <Standard_NullObject.hxx>
23 #include <TCollection_AsciiString.hxx>
26 //const OSD_WhoAmI Iam = OSD_WPrinter;
27 // -------------------------------------------------------------
28 // -------------------------------------------------------------
29 OSD_Printer::OSD_Printer (const TCollection_AsciiString& Name){
34 // -------------------------------------------------------------
35 // -------------------------------------------------------------
36 void OSD_Printer::SetName (const TCollection_AsciiString& Name){
39 Standard_ConstructionError::Raise("OSD_Printer::SetName");
45 // -------------------------------------------------------------
46 // -------------------------------------------------------------
47 void OSD_Printer::Name (TCollection_AsciiString &Name)const{
52 // -------------------------------------------------------------
53 // -------------------------------------------------------------
54 void OSD_Printer::Reset(){
58 // -------------------------------------------------------------
59 // -------------------------------------------------------------
60 Standard_Boolean OSD_Printer::Failed()const{
61 return( myError.Failed());
64 // -------------------------------------------------------------
65 // -------------------------------------------------------------
66 void OSD_Printer::Perror() {
71 // -------------------------------------------------------------
72 // -------------------------------------------------------------
73 Standard_Integer OSD_Printer::Error()const{
74 return( myError.Error());
78 //------------------------------------------------------------------------
79 //------------------- Windows NT sources for OSD_Printer ----------------
80 //------------------------------------------------------------------------
82 #include <OSD_OSDError.hxx>
83 #include <OSD_Printer.hxx>
84 #include <Standard_ConstructionError.hxx>
85 #include <Standard_NullObject.hxx>
86 #include <TCollection_AsciiString.hxx>
88 OSD_Printer :: OSD_Printer ( const TCollection_AsciiString& Name ) {
94 void OSD_Printer :: SetName ( const TCollection_AsciiString& Name ) {
98 } // end OSD_Printer :: SetName
100 void OSD_Printer :: Name ( TCollection_AsciiString& Name ) const {
104 } // end OSD_Printer :: Name
106 Standard_Boolean OSD_Printer :: Failed () const {
108 return myError.Failed ();
110 } // end OSD_Printer :: Failed
112 void OSD_Printer :: Reset () {
116 } // end OSD_Printer :: Reset
118 void OSD_Printer :: Perror () {
122 } // end OSD_Printer :: Perror
124 Standard_Integer OSD_Printer :: Error () const {
126 return myError.Error ();
128 } // end OSD_Printer :: Error