Samond Classes Library 1.2.2-RELEASE build 188
SCObject.h
Go to the documentation of this file.
1 //
2 // SCObject.h
3 // scl
4 //
5 // Created by Viacheslav Smolensky on 02.11.11.
6 // Copyright (c) 2007 - 2017 by Samond Development Corporation. All rights reserved.
7 //
8 
23 #import <Foundation/Foundation.h>
25 
26 #pragma mark -
27 #pragma mark Class Constants
28 
37 #define SCObjectClass @"SCObject"
38 
39 #pragma mark -
40 
58 @interface SCObject : NSObject
59 
60 #pragma mark -
61 #pragma mark Instance Properties
62 
71 @property (nonatomic, readonly, copy) NSString *className;
72 
75 #pragma mark -
76 #pragma mark Serialized Files Support
77 - (instancetype)initWithCoder:(NSCoder *)coder;
78 - (instancetype)initWithContentsOfSerializedFile:(NSString *)path;
79 - (void)encodeWithCoder:(NSCoder *)coder;
80 - (BOOL)writeContentsToSerializedFile:(NSString *)path;
81 
82 #pragma mark -
83 #pragma mark Data Dictionaries Support
84 - (instancetype)initWithDataDictionary:(NSDictionary *)dictionary;
85 - (instancetype)initWithDataDictionaryFromFile:(NSString *)path;
86 - (void)writeToDataDictionary:(NSMutableDictionary *)dictionary;
87 - (void)writeToDataDictionaryFile:(NSString *)path atomically:(BOOL)atomically;
88 - (void)writeToDataDictionaryFile:(NSString *)path;
89 - (NSDictionary *)dataDictionary;
90 
91 #pragma mark -
92 #pragma mark Streams Support
93 - (instancetype)initWithStream:(SCStream *)stream;
94 - (instancetype)initWithFileStream:(NSString *)path;
95 - (void)writeToStream:(SCStream *)stream;
96 - (void)writeToFileStream:(NSString *)path;
97 - (void)appendToFileStream:(NSString *)path;
98 
99 #pragma mark -
100 #pragma mark Collections Support
101 - (id)copyObject;
102 - (SCComparisonResult)compareWithObject:(id<SCCollectioning>)object;
103 
104 #pragma mark -
105 #pragma mark Comparing Objects
106 - (BOOL)isEqual:(id)object;
107 
108 @end
id copyObject()
Definition: SCObject.m:285
Parent class of all library classes.
Definition: SCObject.h:58
SCComparisonResult
Definition: SCCollectioning.h:36
NSDictionary * dataDictionary()
Definition: SCObject.m:175
Category NSObject(SCObject) header file.
NSString * className
Definition: SCObject.h:71
Abstract parent class of the stream classes hierarchy.
Definition: SCStream.h:226