Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/XCAFApp_Application.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Created on: 2000-05-24
0002 // Created by: data exchange team
0003 // Copyright (c) 2000-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _XCAFApp_Application_HeaderFile
0017 #define _XCAFApp_Application_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021 
0022 #include <TDocStd_Application.hxx>
0023 #include <Standard_CString.hxx>
0024 
0025 //! Implements an Application for the DECAF documents
0026 class XCAFApp_Application : public TDocStd_Application
0027 {
0028 
0029 public:
0030   //! methods from TDocStd_Application
0031   //! ================================
0032   Standard_EXPORT const char* ResourcesName() override;
0033 
0034   //! Set XCAFDoc_DocumentTool attribute
0035   Standard_EXPORT void InitDocument(const occ::handle<CDM_Document>& aDoc) const override;
0036 
0037   //! Initializes (for the first time) and returns the
0038   //! static object (XCAFApp_Application)
0039   //! This is the only valid method to get XCAFApp_Application
0040   //! object, and it should be called at least once before
0041   //! any actions with documents in order to init application
0042   Standard_EXPORT static occ::handle<XCAFApp_Application> GetApplication();
0043 
0044   //! Dumps the content of me into the stream
0045   Standard_EXPORT void DumpJson(Standard_OStream& theOStream, int theDepth = -1) const;
0046 
0047   DEFINE_STANDARD_RTTIEXT(XCAFApp_Application, TDocStd_Application)
0048 
0049 protected:
0050   Standard_EXPORT XCAFApp_Application();
0051 };
0052 
0053 #endif // _XCAFApp_Application_HeaderFile