File indexing completed on 2025-01-18 10:02:59
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _Aspect_XRAction_HeaderFile
0015 #define _Aspect_XRAction_HeaderFile
0016
0017 #include <Aspect_XRActionType.hxx>
0018 #include <NCollection_IndexedDataMap.hxx>
0019 #include <Standard_Transient.hxx>
0020 #include <Standard_Type.hxx>
0021 #include <TCollection_AsciiString.hxx>
0022
0023
0024 class Aspect_XRAction : public Standard_Transient
0025 {
0026 DEFINE_STANDARD_RTTIEXT(Aspect_XRAction, Standard_Transient)
0027 public:
0028
0029
0030 const TCollection_AsciiString& Id() const { return myId; }
0031
0032
0033 Aspect_XRActionType Type() const { return myType; }
0034
0035
0036 bool IsValid() const { return myRawHandle != 0; }
0037
0038
0039 uint64_t RawHandle() const { return myRawHandle; }
0040
0041
0042 void SetRawHandle (uint64_t theHande) { myRawHandle = theHande; }
0043
0044
0045 Aspect_XRAction (const TCollection_AsciiString& theId,
0046 const Aspect_XRActionType theType)
0047 : myId (theId), myRawHandle (0), myType (theType) {}
0048
0049 protected:
0050 TCollection_AsciiString myId;
0051 uint64_t myRawHandle;
0052 Aspect_XRActionType myType;
0053 };
0054
0055
0056 typedef NCollection_IndexedDataMap<TCollection_AsciiString, Handle(Aspect_XRAction)> Aspect_XRActionMap;
0057
0058 #endif