Samond Classes Library 1.2.6-STABLE build 219
Classes
SCStream.h File Reference

Class SCStream header file. More...

#import <Foundation/Foundation.h>
#import <scl/SCObject.h>
#import <scl/SCSystemException.h>

Go to the source code of this file.

Classes

class  SCStream
 Abstract parent class of the stream classes hierarchy. More...
 

Class Constants

#define SCStreamClass   @"SCStream"
 
#define SC_STREAM_MAX_STRING_LENGTH   4096
 

Stream Support Types

enum  SCStreamErrorHandling { SCStreamErrorHandlingSystem = 1, SCStreamErrorHandlingStream = 2, SCStreamErrorHandlingStatus = 3 }
 
enum  SCStreamStatusCode {
  SCStreamOK = 0, SCStreamNotOpenError = -20021, SCStreamReadOnlyError = -20022, SCStreamWriteOnlyError = -20023,
  SCStreamUnknownClassError = -20024, SCStreamUnexpectedClassError = -20025, SCStreamUnsupportedClassError = -20026, SCStreamIncompleteReadError = -20027,
  SCStreamIncompleteWriteError = -20028, SCStreamOpenError = -20029, SCStreamReadError = -20030, SCStreamWriteError = -20031
}
 
typedef SCInteger SCStreamStatus
 

Detailed Description

Class SCStream header file.

SDK
macOS 10.6+, iOS 7.0+, GNUstep
Since
version 1.1.3

Contains the declaration of the class SCStream, which presents the methods for support the stream classes hierarchy.

Macro Definition Documentation

#define SC_STREAM_MAX_STRING_LENGTH   4096

A default maximum length of the string

#define SCStreamClass   @"SCStream"

A name of the class SCStream

Typedef Documentation

Defines a status of the stream

Enumeration Type Documentation

Declares a set of constants that indicate the mode of the stream errors handling

Enumerator
SCStreamErrorHandlingSystem 

System exception generation when the stream error detected

SCStreamErrorHandlingStream 

Stream exception generation when the stream error detected

SCStreamErrorHandlingStatus 

Stream status changing when the stream error detected

Declares a set of constants that indicate the stream status

Enumerator
SCStreamOK 

No errors

SCStreamNotOpenError 

Stream does not open

SCStreamReadOnlyError 

Read only stream

SCStreamWriteOnlyError 

Write only stream

SCStreamUnknownClassError 

Unsupported class instance detected

SCStreamUnexpectedClassError 

Unexpected class instance detected

SCStreamUnsupportedClassError 

Unsupported class instance detected

SCStreamIncompleteReadError 

Incomplited reading operation

SCStreamIncompleteWriteError 

Incomplited writing operation

SCStreamOpenError 

Stream opening error

SCStreamReadError 

Stream reading error

SCStreamWriteError 

Stream writing error