Warning, file /include/opencascade/Standard_OutOfMemory.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Standard_OutOfMemory_HeaderFile
0018 #define _Standard_OutOfMemory_HeaderFile
0019
0020 #include <Standard_Type.hxx>
0021 #include <Standard_ProgramError.hxx>
0022
0023 class Standard_OutOfMemory;
0024 DEFINE_STANDARD_HANDLE(Standard_OutOfMemory, Standard_ProgramError)
0025
0026 #if !defined No_Exception && !defined No_Standard_OutOfMemory
0027 #define Standard_OutOfMemory_Raise_if(CONDITION, MESSAGE) \
0028 if (CONDITION) throw Standard_OutOfMemory(MESSAGE);
0029 #else
0030 #define Standard_OutOfMemory_Raise_if(CONDITION, MESSAGE)
0031 #endif
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047 class Standard_OutOfMemory : public Standard_ProgramError
0048 {
0049 Standard_EXPORT void Throw () const Standard_OVERRIDE;
0050
0051 public:
0052
0053
0054 Standard_EXPORT Standard_OutOfMemory(const Standard_CString theMessage = 0);
0055
0056
0057 Standard_EXPORT Standard_CString GetMessageString() const Standard_OVERRIDE;
0058
0059
0060 Standard_EXPORT void SetMessageString (const Standard_CString aMessage) Standard_OVERRIDE;
0061
0062
0063 Standard_EXPORT static void Raise(const Standard_CString theMessage = "");
0064
0065
0066 Standard_EXPORT static void Raise(Standard_SStream& theMessage);
0067
0068
0069 Standard_EXPORT static Handle(Standard_OutOfMemory) NewInstance (Standard_CString theMessage = "");
0070
0071
0072 Standard_EXPORT static Handle(Standard_OutOfMemory) NewInstance (Standard_CString theMessage,
0073 Standard_CString theStackTrace);
0074
0075 DEFINE_STANDARD_RTTIEXT(Standard_OutOfMemory,Standard_ProgramError)
0076
0077 protected:
0078 char myBuffer[1024];
0079 };
0080
0081 #endif