File indexing completed on 2026-09-12 09:16:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _DDocStd_HeaderFile
0017 #define _DDocStd_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <Standard_Boolean.hxx>
0024 #include <Draw_Interpretor.hxx>
0025 class TDocStd_Application;
0026 class TDocStd_Document;
0027 class TDF_Label;
0028 class Standard_GUID;
0029 class TDF_Attribute;
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043 class DDocStd
0044 {
0045 public:
0046 DEFINE_STANDARD_ALLOC
0047
0048
0049 Standard_EXPORT static const occ::handle<TDocStd_Application>& GetApplication();
0050
0051 Standard_EXPORT static bool GetDocument(const char*& Name,
0052 occ::handle<TDocStd_Document>& Doc,
0053 const bool Complain = true);
0054
0055 Standard_EXPORT static bool Find(const occ::handle<TDocStd_Document>& Document,
0056 const char* const Entry,
0057 TDF_Label& Label,
0058 const bool Complain = true);
0059
0060 Standard_EXPORT static bool Find(const occ::handle<TDocStd_Document>& Document,
0061 const char* const Entry,
0062 const Standard_GUID& ID,
0063 occ::handle<TDF_Attribute>& A,
0064 const bool Complain = true);
0065
0066
0067 template <class T>
0068 static bool Find(const occ::handle<TDocStd_Document>& Document,
0069 const char* const Entry,
0070 const Standard_GUID& ID,
0071 occ::handle<T>& A,
0072 const bool Complain = true)
0073 {
0074 occ::handle<TDF_Attribute> anAttr = A;
0075 return Find(Document, Entry, ID, anAttr, Complain) && !(A = occ::down_cast<T>(anAttr)).IsNull();
0076 }
0077
0078 Standard_EXPORT static Draw_Interpretor& ReturnLabel(Draw_Interpretor& theCommands,
0079 const TDF_Label& L);
0080
0081 Standard_EXPORT static void AllCommands(Draw_Interpretor& theCommands);
0082
0083
0084 Standard_EXPORT static void ApplicationCommands(Draw_Interpretor& theCommands);
0085
0086
0087 Standard_EXPORT static void DocumentCommands(Draw_Interpretor& theCommands);
0088
0089
0090 Standard_EXPORT static void ToolsCommands(Draw_Interpretor& theCommands);
0091
0092
0093 Standard_EXPORT static void MTMCommands(Draw_Interpretor& theCommands);
0094
0095
0096 Standard_EXPORT static void ShapeSchemaCommands(Draw_Interpretor& theCommands);
0097 };
0098
0099 #endif