38 // ---------------------------------------------------------------------------- |
38 // ---------------------------------------------------------------------------- |
39 // |
39 // |
40 ReportIssue::ReportIssue(int aIssueId, const string& aFile, |
40 ReportIssue::ReportIssue(int aIssueId, const string& aFile, |
41 const string& aFQName, const TIssueIdentity& aIdentityId, |
41 const string& aFQName, const TIssueIdentity& aIdentityId, |
42 const TIssueType& aTypeId, const TBCSeverity& aBCSeverityId, |
42 const TIssueType& aTypeId, const TBCSeverity& aBCSeverityId, |
43 const TSCSeverity& aSCSeverityId, const string& aIgnoreInformation, |
43 const TSCSeverity& aSCSeverityId, const string& aIgnoreInformation, |
44 int aLineNumber, const string& aCompareFileName, const string& aCompilationError, bool alineNoNeeded ): |
44 int aLineNumber, const string& aIssueLoc, const string& aCompareFileName, |
|
45 const string& aCompilationError, bool alineNoNeeded): |
45 iHeaderFile(aFile), |
46 iHeaderFile(aFile), |
46 iFQName(aFQName), |
47 iFQName(aFQName), |
47 iId(aIssueId), |
48 iId(aIssueId), |
48 iBCSeverity(aBCSeverityId), |
49 iBCSeverity(aBCSeverityId), |
49 iSCSeverity(aSCSeverityId), |
50 iSCSeverity(aSCSeverityId), |
50 iIgnoreInformation(aIgnoreInformation), |
51 iIgnoreInformation(aIgnoreInformation), |
51 iIdentityId(aIdentityId), |
52 iIdentityId(aIdentityId), |
52 iTypeId(aTypeId), |
53 iTypeId(aTypeId), |
53 iLineNumber( aLineNumber ), |
54 iLineNumber( aLineNumber ), |
|
55 iIssueLoc(aIssueLoc), |
54 iCompareFileName( aCompareFileName ), |
56 iCompareFileName( aCompareFileName ), |
55 iCompilationError(aCompilationError), |
57 iCompilationError(aCompilationError) |
56 iLineNoNeeded(alineNoNeeded) |
|
57 { |
58 { |
58 } |
59 } |
59 |
60 |
60 // ---------------------------------------------------------------------------- |
61 // ---------------------------------------------------------------------------- |
61 // ReportIssue::~ReportIssue |
62 // ReportIssue::~ReportIssue |
254 { |
255 { |
255 iLineNumber = lineNumber; |
256 iLineNumber = lineNumber; |
256 } |
257 } |
257 |
258 |
258 // ---------------------------------------------------------------------------- |
259 // ---------------------------------------------------------------------------- |
|
260 // ReportIssue::LineNumber |
|
261 // ---------------------------------------------------------------------------- |
|
262 // |
|
263 const string& ReportIssue::IssueLocation() const |
|
264 { |
|
265 return iIssueLoc; |
|
266 } |
|
267 |
|
268 // ---------------------------------------------------------------------------- |
259 // ReportIssue::CompareFileName |
269 // ReportIssue::CompareFileName |
260 // ---------------------------------------------------------------------------- |
270 // ---------------------------------------------------------------------------- |
261 // |
271 // |
262 const string& ReportIssue::CompareFileName() const |
272 const string& ReportIssue::CompareFileName() const |
263 { |
273 { |
269 // ---------------------------------------------------------------------------- |
279 // ---------------------------------------------------------------------------- |
270 // |
280 // |
271 const string& ReportIssue::CompilationError() const |
281 const string& ReportIssue::CompilationError() const |
272 { |
282 { |
273 return iCompilationError; |
283 return iCompilationError; |
274 } |
|
275 |
|
276 const bool& ReportIssue::LineInfoNeeded() |
|
277 { |
|
278 return iLineNoNeeded; |
|
279 } |
284 } |
280 |
285 |
281 // ---------------------------------------------------------------------------- |
286 // ---------------------------------------------------------------------------- |
282 // ReportIssue::ReportIssue |
287 // ReportIssue::ReportIssue |
283 // ---------------------------------------------------------------------------- |
288 // ---------------------------------------------------------------------------- |
300 iSCSeverity=other.iSCSeverity; |
305 iSCSeverity=other.iSCSeverity; |
301 iIgnoreInformation=other.iIgnoreInformation; |
306 iIgnoreInformation=other.iIgnoreInformation; |
302 iIdentityId=other.iIdentityId; |
307 iIdentityId=other.iIdentityId; |
303 iTypeId=other.iTypeId; |
308 iTypeId=other.iTypeId; |
304 iLineNumber=other.iLineNumber; |
309 iLineNumber=other.iLineNumber; |
|
310 iIssueLoc=other.iIssueLoc; |
305 iCompareFileName=other.iCompareFileName; |
311 iCompareFileName=other.iCompareFileName; |
306 iCompilationError=other.iCompilationError; |
312 iCompilationError=other.iCompilationError; |
307 return (*this); |
313 return (*this); |
308 } |
314 } |
309 |
315 |