C# 클래스 SensorShare.AnnotationBase

The base class for annotations, providing the ID and Time
상속: IAnnotation
파일 보기 프로젝트 열기: MarkPaxton/SensorShare3 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
author string
type AnnotationType

공개 메소드들

메소드 설명
AnnotationBase ( ) : System
AnnotationBase ( System.Guid id, System.Guid server_id, System.Guid author_id, System.DateTime time, string author ) : System
AnnotationBase ( System.Guid id, System.Guid server_id, System.Guid author_id, System.DateTime time, string author, AnnotationType type ) : System
AnnotationBase ( byte data ) : System
GetBytes ( ) : byte[]

Returns the annotation data as an array of bytes

보호된 메소드들

메소드 설명
ReadBaseData ( MemoryStream ms ) : MemoryStream

Read the data from a given MemoryStream and return that steam with the pointer at the end of the data

Will Seek the start of the MemoryStream given and leave it at the end of the bytes loaded. Exceptions must be caught upstream.

WriteBaseData ( ) : MemoryStream

Generate a MemoryStream containing the base into which to add the data for the rest of the annotation.

The MemoryStream is a new stream and therefore must be closed after use.

메소드 상세

AnnotationBase() 공개 메소드

public AnnotationBase ( ) : System
리턴 System

AnnotationBase() 공개 메소드

public AnnotationBase ( System.Guid id, System.Guid server_id, System.Guid author_id, System.DateTime time, string author ) : System
id System.Guid
server_id System.Guid
author_id System.Guid
time System.DateTime
author string
리턴 System

AnnotationBase() 공개 메소드

public AnnotationBase ( System.Guid id, System.Guid server_id, System.Guid author_id, System.DateTime time, string author, AnnotationType type ) : System
id System.Guid
server_id System.Guid
author_id System.Guid
time System.DateTime
author string
type AnnotationType
리턴 System

AnnotationBase() 공개 메소드

public AnnotationBase ( byte data ) : System
data byte
리턴 System

GetBytes() 공개 메소드

Returns the annotation data as an array of bytes
public GetBytes ( ) : byte[]
리턴 byte[]

ReadBaseData() 보호된 메소드

Read the data from a given MemoryStream and return that steam with the pointer at the end of the data
Will Seek the start of the MemoryStream given and leave it at the end of the bytes loaded. Exceptions must be caught upstream.
protected ReadBaseData ( MemoryStream ms ) : MemoryStream
ms System.IO.MemoryStream
리턴 System.IO.MemoryStream

WriteBaseData() 보호된 메소드

Generate a MemoryStream containing the base into which to add the data for the rest of the annotation.
The MemoryStream is a new stream and therefore must be closed after use.
protected WriteBaseData ( ) : MemoryStream
리턴 System.IO.MemoryStream

프로퍼티 상세

author 보호되어 있는 프로퍼티

protected string author
리턴 string

type 보호되어 있는 프로퍼티

protected AnnotationType type
리턴 AnnotationType