File indexing completed on 2025-01-18 10:03:27
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _Express_Schema_HeaderFile
0015 #define _Express_Schema_HeaderFile
0016
0017 #include <Express_DataMapOfAsciiStringItem.hxx>
0018 #include <Express_HSequenceOfItem.hxx>
0019 #include <Standard_Type.hxx>
0020
0021 class TCollection_HAsciiString;
0022 class Express_HSequenceOfItem;
0023 class Express_Item;
0024 class TCollection_AsciiString;
0025 class Express_Type;
0026
0027
0028
0029
0030 class Express_Schema : public Standard_Transient
0031 {
0032
0033 public:
0034
0035
0036
0037 Standard_EXPORT Express_Schema (const Standard_CString theName,
0038 const Handle(Express_HSequenceOfItem)& theItems);
0039
0040
0041
0042 Standard_EXPORT Express_Schema (const Handle(TCollection_HAsciiString)& theName,
0043 const Handle(Express_HSequenceOfItem)& theItems);
0044
0045
0046 Standard_EXPORT const Handle(TCollection_HAsciiString)& Name() const;
0047
0048
0049 Standard_EXPORT const Handle(Express_HSequenceOfItem)& Items() const;
0050
0051
0052 Standard_EXPORT Standard_Integer NbItems() const;
0053
0054
0055 Standard_EXPORT Handle(Express_Item) Item (const Standard_Integer theNum) const;
0056
0057
0058 Standard_EXPORT Handle(Express_Item) Item (const Standard_CString theName,
0059 const Standard_Boolean theSilent = Standard_False) const;
0060
0061
0062 Standard_EXPORT Handle(Express_Item) Item (const TCollection_AsciiString& theName) const;
0063
0064
0065 Standard_EXPORT Handle(Express_Item) Item (const Handle(TCollection_HAsciiString)& theName) const;
0066
0067 DEFINE_STANDARD_RTTIEXT(Express_Schema, Standard_Transient)
0068
0069 protected:
0070
0071 private:
0072
0073
0074
0075
0076
0077 Standard_EXPORT void Prepare();
0078
0079
0080
0081
0082 Standard_EXPORT void PrepareType (const Handle(Express_Type)& theType) const;
0083
0084 private:
0085
0086 Handle(TCollection_HAsciiString) myName;
0087 Handle(Express_HSequenceOfItem) myItems;
0088 Express_DataMapOfAsciiStringItem myDict;
0089
0090 };
0091
0092 #endif