File indexing completed on 2025-01-18 10:04:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ShapeProcess_Context_HeaderFile
0017 #define _ShapeProcess_Context_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_Type.hxx>
0021
0022 #include <TColStd_HSequenceOfHAsciiString.hxx>
0023 #include <Standard_Integer.hxx>
0024 #include <Standard_Transient.hxx>
0025 class Resource_Manager;
0026 class Message_Messenger;
0027 class TCollection_AsciiString;
0028
0029
0030 class ShapeProcess_Context;
0031 DEFINE_STANDARD_HANDLE(ShapeProcess_Context, Standard_Transient)
0032
0033
0034
0035
0036
0037
0038
0039 class ShapeProcess_Context : public Standard_Transient
0040 {
0041
0042 public:
0043
0044
0045
0046 Standard_EXPORT ShapeProcess_Context();
0047
0048
0049
0050
0051 Standard_EXPORT ShapeProcess_Context(const Standard_CString file, const Standard_CString scope = "");
0052
0053
0054
0055
0056 Standard_EXPORT Standard_Boolean Init (const Standard_CString file, const Standard_CString scope = "");
0057
0058
0059
0060
0061 Standard_EXPORT Handle(Resource_Manager) LoadResourceManager (const Standard_CString file);
0062
0063
0064 Standard_EXPORT const Handle(Resource_Manager)& ResourceManager() const;
0065
0066
0067 Standard_EXPORT void SetScope (const Standard_CString scope);
0068
0069
0070 Standard_EXPORT void UnSetScope();
0071
0072
0073 Standard_EXPORT Standard_Boolean IsParamSet (const Standard_CString param) const;
0074
0075 Standard_EXPORT Standard_Boolean GetReal (const Standard_CString param, Standard_Real& val) const;
0076
0077 Standard_EXPORT Standard_Boolean GetInteger (const Standard_CString param, Standard_Integer& val) const;
0078
0079 Standard_EXPORT Standard_Boolean GetBoolean (const Standard_CString param, Standard_Boolean& val) const;
0080
0081
0082
0083 Standard_EXPORT Standard_Boolean GetString (const Standard_CString param, TCollection_AsciiString& val) const;
0084
0085 Standard_EXPORT Standard_Real RealVal (const Standard_CString param, const Standard_Real def) const;
0086
0087 Standard_EXPORT Standard_Integer IntegerVal (const Standard_CString param, const Standard_Integer def) const;
0088
0089 Standard_EXPORT Standard_Boolean BooleanVal (const Standard_CString param, const Standard_Boolean def) const;
0090
0091
0092
0093
0094 Standard_EXPORT Standard_CString StringVal (const Standard_CString param, const Standard_CString def) const;
0095
0096
0097 Standard_EXPORT void SetMessenger (const Handle(Message_Messenger)& messenger);
0098
0099
0100 Standard_EXPORT Handle(Message_Messenger) Messenger() const;
0101
0102
0103
0104
0105
0106
0107
0108 Standard_EXPORT void SetTraceLevel (const Standard_Integer tracelev);
0109
0110
0111 Standard_EXPORT Standard_Integer TraceLevel() const;
0112
0113
0114
0115
0116 DEFINE_STANDARD_RTTIEXT(ShapeProcess_Context,Standard_Transient)
0117
0118 protected:
0119
0120
0121
0122
0123 private:
0124
0125
0126 Handle(Resource_Manager) myRC;
0127 Handle(TColStd_HSequenceOfHAsciiString) myScope;
0128 Handle(Message_Messenger) myMessenger;
0129 Standard_Integer myTraceLev;
0130
0131
0132 };
0133
0134
0135
0136
0137
0138
0139
0140 #endif