| Inherits from | NSObject |
| Declared in | GBSourceInfo.h<br />GBSourceInfo.m |
Specifies declared file data for store object.
Declared file provides information about where an object was declared - i.e. source file name and line number. This can be used for generating output and for diagnostics and as debug information.
+ infoWithFilename:lineNumber:
Returns a new autoreleased GBSourceInfo with the given values.
- compare:
Returns an NSComparisonResult value that indicates whether the receiver is greater than, equal to, or less than a given data .
filename
The name of the file, without path.
lineNumber
The number of the line within the file.
Returns a new autoreleased GBSourceInfo with the given values.
+ (id)infoWithFilename:(NSString *)filename lineNumber:(NSUInteger)lineNumberReturns autoreleased object.
Returns a new autoreleased GBSourceInfo with the given values.
nil or empty string. GBSourceInfo.hGBSourceInfo.m Returns an NSComparisonResult value that indicates whether the receiver is greater than, equal to, or less than a given data .
- (NSComparisonResult)compare:(GBSourceInfo *)data GBSourceInfo to compare with. NSOrderedAscending if the value of data is greater than the receiver, NSOrderedSame if they’re equal, and NSOrderedDescending if the data is less than the receiver.
Returns an NSComparisonResult value that indicates whether the receiver is greater than, equal to, or less than a given data .
Comparison is done over the filename first. If the filename is the same, lineNumber is compared.
Important: Note that the given data must not be nil . The behavior is undefined in such case!
GBSourceInfo.hGBSourceInfo.mThe name of the file, without path.
@property (readonly, copy) NSString *filenameThe name of the file, without path.
GBSourceInfo.h