|
||||
File indexing completed on 2025-01-18 09:54:33
0001 #ifndef ZMERRNO_ICC 0002 #error "Exceptions/ZMerrno.icc included without Exceptions/ZMerrno.h" 0003 #endif 0004 0005 0006 // ---------------------------------------------------------------------- 0007 // 0008 // ZMerrno.icc -- inline implementations for the error list mechanism. 0009 // 0010 // 0011 // The following methods of ZMerrnoList are defined here: 0012 // ZMerrnoList(); 0013 // unsigned int size(); 0014 // void clear(); 0015 // int count(); 0016 // int countSinceCleared(); 0017 // 0018 // Revision History: 0019 // 970916 WEB Updated per code review 0020 // 970917 WEB Updated per code review 2 0021 // 980617 WEB Added namespace support 0022 // 011030 MF Changed return type of size to unsigned 0023 // 0024 // ---------------------------------------------------------------------- 0025 0026 0027 namespace zmex { 0028 0029 0030 //************** 0031 // 0032 // ZMerrnoList() 0033 // 0034 //************** 0035 0036 // Constructor 0037 0038 inline ZMerrnoList::ZMerrnoList() : 0039 max_( ZMERRNO_LENGTH ) 0040 , count_( 0 ) 0041 , countSinceCleared_( 0 ) 0042 { 0043 } 0044 0045 0046 //******************** 0047 // 0048 // countSinceCleared() 0049 // 0050 //******************** 0051 0052 inline int ZMerrnoList::countSinceCleared() const { 0053 // Return the number of exceptions written to the ZMerrnoList since 0054 // last cleared 0055 return countSinceCleared_; 0056 } 0057 0058 //******** 0059 // 0060 // size() 0061 // 0062 //******** 0063 0064 // 0065 // unsigned int size() const; 0066 // return the number of entries currently on the exception stack 0067 0068 inline unsigned int ZMerrnoList::size() const { 0069 return (unsigned int)errors_.size(); 0070 } 0071 0072 //******** 0073 // 0074 // count() 0075 // 0076 //******** 0077 0078 // 0079 // int count() const; 0080 // return the number of entries ever ZMerrno.write() to the exception stack 0081 0082 inline int ZMerrnoList::count() const { 0083 return count_; 0084 } 0085 0086 //******** 0087 // 0088 // clear() 0089 // 0090 //******** 0091 0092 inline void ZMerrnoList::clear() { 0093 0094 countSinceCleared_ = 0; 0095 } 0096 0097 0098 } // namespace zmex
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |