|
Samond Classes Library 1.1.6-RELEASE build 132
|
Common ancestor of all library classes. More...
#import <SCObject.h>
Public Member Functions | |
Supporting Data Dictionaries | |
| (id) | - initWithDataDictionary: |
| (id) | - initWithDataDictionaryFromFile: |
| (void) | - writeToDataDictionary: |
| (void) | - writeToDataDictionaryFile:atomically: |
| (void) | - writeToDataDictionaryFile: |
| (NSDictionary *) | - dataDictionary |
Supporting Coders and Serialized Files | |
| (id) | - initWithCoder: |
| (id) | - initWithContentsOfSerializedFile: |
| (void) | - encodeWithCoder: |
| (BOOL) | - writeContentsToSerializedFile: |
Supporting Streams | |
| (id) | - initWithStream: |
| (id) | - initWithFileStream: |
| (void) | - writeToStream: |
| (void) | - writeToFileStream: |
| (void) | - appendToFileStream: |
Supporting Collections | |
| (id< SCCollectionProtocol >) | - copyObject |
| (SCComparisonResult) | - compareWithObject: |
| (NSString *) | - className |
Comparing Objects | |
| (BOOL) | - isEqual: |
Common ancestor of all library classes.
Is the common ancestor of all other library classes except classes of the exceptional situations.
Introduced to the library in order to organize library classes tree.
Class was introduced in version 1.1.3.
Class declared the following properties:
| - (void) appendToFileStream: | (NSString *) | path |
Appends the receiver's class instance to the new or existing stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
Reimplemented from <SCStreamProtocol>.
| - (NSString *) className |
Returns the receiver's instance class name.
Reimplemented from <SCCodingProtocol>.
| - (SCComparisonResult) compareWithObject: | (id<SCCollectionProtocol>) | object |
Returns the result of comparison receiver's instance with the specified instance.
| object | - second instance for comparison |
| SCCollectionException | - incompatible second instance detected |
Reimplemented from <SCCollectionProtocol>.
| - (id< SCCollectionProtocol >) copyObject |
Returns the copy of receiver's instance.
Abstract method must be reimplemented in child classes.
Reimplemented from <SCCollectionProtocol>.
| - (NSDictionary *) dataDictionary |
Returns the dictionary with the receiver's data.
Reimplemented from <SCDictionaryObjectProtocol>.
| - (void) encodeWithCoder: | (NSCoder *) | coder |
Encodes the receiver's data to the specified coder.
| coder | - destination coder |
| - (id) initWithCoder: | (NSCoder *) | coder |
Initializes the class instance using the specified coder.
To support interaction with a coder, this method should be overriden.
| coder | - source coder |
| - (id) initWithContentsOfSerializedFile: | (NSString *) | path |
Initializes the class instance using the contens of serialized file with the specified path.
| path | - source serialized file path |
Reimplemented from <SCCodingProtocol>.
| - (id) initWithDataDictionary: | (NSDictionary *) | dictionary |
Initializes the class instance using the specified dictionary.
To support interaction with a dictionary, this method should be overridden.
| dictionary | - source dictionary |
Reimplemented from <SCDictionaryObjectProtocol>.
| - (id) initWithDataDictionaryFromFile: | (NSString *) | path |
Initializes the class instance using the dictionary from the specified file.
| path | - source dictionary file path |
Reimplemented from <SCDictionaryObjectProtocol>.
| - (id) initWithFileStream: | (NSString *) | path |
Initializes class instance from the stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
Reimplemented from <SCStreamProtocol>.
| - (id) initWithStream: | (SCStream *) | stream |
Initializes class instance from the specified stream.
| stream | - stream for reading class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented from <SCStreamProtocol>.
| - (BOOL) isEqual: | (id) | object |
Returns a boolean value that indicates whether the receiver and a given object are equal.
| object | - object to be compared to the receiver |
Reimplemented in SCCollection, SCConfig, SCConfigRecord, SCIPAddress, SCStrings, SCSubnet, SCSubnetMask, and SCTextIndex.
| - (BOOL) writeContentsToSerializedFile: | (NSString *) | path |
Writes receiver's encoded data into the serialized file with the specified path.
| path | - path at which to write the file |
Reimplemented from <SCCodingProtocol>.
| - (void) writeToDataDictionary: | (NSMutableDictionary *) | dictionary |
Writes the receiver's data into the specified dictionary.
| dictionary | - destination dictionary |
Reimplemented from <SCDictionaryObjectProtocol>.
| - (void) writeToDataDictionaryFile: | (NSString *) | path |
Atomically writes the receiver's data into the dictionary file with the specified path.
| path | - path at which to write the file |
Reimplemented from <SCDictionaryObjectProtocol>.
| - (void) writeToDataDictionaryFile: | (NSString *) | path | |
| atomically: | (BOOL) | atomically | |
Writes the receiver's data into the dictionary file with the specified path.
| path | - path at which to write the file |
| atomically | - YES for writing data to an auxiliary file, and then the auxiliary file is renamed to path, NO for writing data directly to path |
Reimplemented from <SCDictionaryObjectProtocol>.
| - (void) writeToFileStream: | (NSString *) | path |
Saves the receiver's class instance to the created stream file with the specified path.
| path | - stream file path |
| SCStreamException | - stream operation error detected |
Reimplemented from <SCStreamProtocol>.
| - (void) writeToStream: | (SCStream *) | stream |
Saves the receiver's class instance to the specified stream.
| stream | - stream for writing receiver's class instance |
| SCStreamException | - stream operation error detected |
| SCSystemException | - system error detected |
Reimplemented from <SCStreamProtocol>.
1.7.3