C# Класс SensorShare.AnnotationBase

The base class for annotations, providing the ID and Time
Наследование: IAnnotation
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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