#pragma once #using <mscorlib.dll> #include "error.h" namespace p4dn { enum ErrorSeverity { Empty, Info, Warning, Failed, Fatal }; __gc public class Error { public: Error( void ); ~Error( void ); void Clear(); bool Test(); bool IsInfo(); bool IsWarning(); bool IsFatal(); System::String* Fmt(); __property p4dn::ErrorSeverity get_Severity() { return static_cast< p4dn::ErrorSeverity >( _err->GetSeverity() ); } private: ::Error* _err; bool _requiresFree; public private: Error( ::Error* e ) : _err(e) { _requiresFree = false; } __property ::Error* get_InternalError() { return _err; } }; } // end namespace
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 5826 | Shawn Hladky | PerforceDotNet is now obsolete | ||
#2 | 4545 | Shawn Hladky |
Several Fixes: Updated solution to Visual Studio 2003 Implemented InputData Implemented OutPutBinary Changed ClientAPI and Error objects to implement the IDisposable interface to improve Garbage Collection Changed header files so you don't need to add #pragma once to the p4 api headers. Refactored the ClientUserDelagate class Fixed a few minor memory leaks |
||
#1 | 4328 | Shawn Hladky | Branching from //guest/jacob_gladish/PerforceDotNet/... | ||
//guest/jacob_gladish/PerforceDotNet/p4dn/Error_m.h | |||||
#1 | 3787 | Jacob Gladish | initial code submission |