Changeset 828 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include/Messenger.h
- Timestamp:
- Mar 19, 2012, 1:59:48 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/egtra merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ab5.0/abdev
-
Property svn:ignore
set to
*.opensdf
*.sdf
*.suo
*.user
int
ipch
out
-
Property svn:ignore
set to
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/Messenger.h
r541 r828 1 #pragma once 1 2 2 3 class Messenger … … 23 24 { 24 25 } 26 25 27 ErrorInfo( int errorCode, const std::string &keyword, int sourceIndex ); 28 29 ErrorInfo(ErrorInfo&& y) 30 : errorCode(std::move(y.errorCode)) 31 , keyword(std::move(y.keyword)) 32 , sourceFilePath(std::move(y.sourceFilePath)) 33 , sourceLineNum(std::move(y.sourceLineNum)) 34 , errorLineNum(std::move(y.errorLineNum)) 35 { 36 } 37 38 ErrorInfo(ErrorInfo const& y) 39 : errorCode(y.errorCode) 40 , keyword(y.keyword) 41 , sourceFilePath(y.sourceFilePath) 42 , sourceLineNum(y.sourceLineNum) 43 , errorLineNum(y.errorLineNum) 44 { 45 } 46 47 ErrorInfo& operator =(ErrorInfo&& y) 48 { 49 errorCode = std::move(y.errorCode); 50 keyword = std::move(y.keyword); 51 sourceFilePath = std::move(y.sourceFilePath); 52 sourceLineNum = std::move(y.sourceLineNum); 53 errorLineNum = std::move(y.errorLineNum); 54 return *this; 55 } 56 57 ErrorInfo& operator =(ErrorInfo const& y) 58 { 59 return *this = std::move(ErrorInfo(y)); 60 } 26 61 27 62 int GetErrorCode() const … … 62 97 63 98 public: 99 ErrorMessenger() {} 100 64 101 void Output( const ErrorInfo &errorInfo ); 65 102 void Output( int errorCode, const std::string &keyword, int sourceIndex = -1 ); … … 74 111 75 112 void ShowErrorLine( int errorLineNum ); 113 114 private: 115 ErrorMessenger(ErrorMessenger const&); 116 ErrorMessenger& operator =(ErrorMessenger const&); 76 117 };
Note:
See TracChangeset
for help on using the changeset viewer.