File indexing completed on 2024-11-15 09:46:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _DDF_HeaderFile
0017 #define _DDF_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 TDF_Data;
0026 class TDF_Label;
0027 class Standard_GUID;
0028 class TDF_Attribute;
0029
0030
0031
0032
0033 class DDF
0034 {
0035 public:
0036
0037 DEFINE_STANDARD_ALLOC
0038
0039
0040
0041
0042
0043 Standard_EXPORT static Standard_Boolean GetDF (Standard_CString& Name, Handle(TDF_Data)& DF, const Standard_Boolean Complain = Standard_True);
0044
0045
0046
0047
0048 Standard_EXPORT static Standard_Boolean FindLabel (const Handle(TDF_Data)& DF, const Standard_CString Entry, TDF_Label& Label, const Standard_Boolean Complain = Standard_True);
0049
0050
0051
0052
0053 Standard_EXPORT static Standard_Boolean AddLabel (const Handle(TDF_Data)& DF, const Standard_CString Entry, TDF_Label& Label);
0054
0055
0056
0057
0058 Standard_EXPORT static Standard_Boolean Find (const Handle(TDF_Data)& DF, const Standard_CString Entry, const Standard_GUID& ID, Handle(TDF_Attribute)& A, const Standard_Boolean Complain = Standard_True);
0059
0060
0061 template <class T>
0062 static Standard_Boolean Find (const Handle(TDF_Data)& DF, const Standard_CString Entry, const Standard_GUID& ID, Handle(T)& A, const Standard_Boolean Complain = Standard_True)
0063 {
0064 Handle(TDF_Attribute) anAttr = A;
0065 return Find (DF, Entry, ID, anAttr, Complain) && ! (A = Handle(T)::DownCast(anAttr)).IsNull();
0066 }
0067
0068 Standard_EXPORT static Draw_Interpretor& ReturnLabel (Draw_Interpretor& theCommands, const TDF_Label& L);
0069
0070 Standard_EXPORT static void AllCommands (Draw_Interpretor& theCommands);
0071
0072
0073 Standard_EXPORT static void BasicCommands (Draw_Interpretor& theCommands);
0074
0075
0076
0077 Standard_EXPORT static void DataCommands (Draw_Interpretor& theCommands);
0078
0079
0080
0081 Standard_EXPORT static void TransactionCommands (Draw_Interpretor& theCommands);
0082
0083
0084 Standard_EXPORT static void BrowserCommands (Draw_Interpretor& theCommands);
0085
0086 };
0087
0088 #endif