FileStream
01 Syntax
SMRUCC.genomics.Assembly.MetaCyc.File.DataFiles.Reflection.FileStream
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Generate | 1 | 将一个MetaCyc数据库中的对象转换为字符串 |
| GetMetaCycField | 1 | 获取一个MetaCyc记录类型对象的所有域以及相对应的属性信息 |
| SplitSlotName | 1 | 将字符串按照大写字母进行分割,生成符合MetaCyc字段名称格式的字符串 |
| Read | 1 | |
| CType | 1 | 使用反射,将字典之中的数据赋值到相对应的属性之上 |
| Equals | 3 | 采用类型信息缓存机制的等价判断函数,请保证ItemProperties和FieldAttributes着两个参数的列表的数目的一致性,(注意:在本函数中不允许出现空值) |
| Write | 1 | |
| Generate | 1 | |
| GetMetaCycField | 1 | |
| Read | 1 | |
| Equals | 3 |
03 Members
将一个MetaCyc数据库中的对象转换为字符串
Type Parameters
| Name | Description |
|---|---|
TObject |
Parameters
| Name | Type | Description |
|---|---|---|
e | ``0 | - |
props | PropertyInfo() | - |
Fieldattrs | MetaCycField() | - |
GetMetaCycField``1(
PropertyInfo(), MetaCycField())获取一个MetaCyc记录类型对象的所有域以及相对应的属性信息
Type Parameters
| Name | Description |
|---|---|
T |
Parameters
| Name | Type | Description |
|---|---|---|
PropertyInfo | PropertyInfo() | - |
FieldAttributes | MetaCycField() | - |
SplitSlotName(
String)将字符串按照大写字母进行分割,生成符合MetaCyc字段名称格式的字符串
Remarks
SlotName: SLOT-NAME
Parameters
| Name | Type | Description |
|---|---|---|
SlotName | String | - |
Read``2(
String, ``1)Type Parameters
| Name | Description |
|---|---|
TObject | |
T |
Parameters
| Name | Type | Description |
|---|---|---|
file | String | - |
Stream | ``1 | The stream object for output the read data, it must be construct first before call this method. (用于输出所读取的数据的流对象,其在调用本函数之前必须被构造出来) |
使用反射,将字典之中的数据赋值到相对应的属性之上
Type Parameters
| Name | Description |
|---|---|
TObject |
Parameters
| Name | Type | Description |
|---|---|---|
om | ObjectModel | - |
ItemProperties | PropertyInfo() | - |
FieldAttributes | PropertyInfo() | - |
TSchema | MetaCycField() | TObject的Schema的缓存 |
Equals``1(
``0, ``0, String())使用反射的方法判断两个对象的值是否相同
Type Parameters
| Name | Description |
|---|---|
TObject | 将要进行判断的对象的具体类型 |
Parameters
| Name | Type | Description |
|---|---|---|
objA | ``0 | - |
objB | ``0 | - |
ComparedFields | String() | 将要进行比较的域,假若该列表为空的话,则默认比较所有域,对于列表中不存在的域,则忽略 |
采用类型信息缓存机制的等价判断函数,请保证ItemProperties和FieldAttributes着两个参数的列表的数目的一致性
Type Parameters
| Name | Description |
|---|---|
TObject |
Parameters
| Name | Type | Description |
|---|---|---|
objA | ``0 | - |
objB | ``0 | - |
ItemProperties | PropertyInfo() | - |
FieldAttributes | MetaCycField() | - |
采用类型信息缓存机制的等价判断函数,请保证ItemProperties和FieldAttributes着两个参数的列表的数目的一致性,(注意:在本函数中不允许出现空值)
Type Parameters
| Name | Description |
|---|---|
TObject |
Parameters
| Name | Type | Description |
|---|---|---|
objA | ``0 | - |
objB | ``0 | - |
ItemProperties | PropertyInfo() | - |
FieldAttributes | MetaCycField() | - |
OverloadsNullable | Nullable(Of Boolean) | 无意义的参数,任意值 |
Write(
String, T)GetMetaCycField(
PropertyInfo(), MetaCycField())Read(
String, T)Equals(
TObject, TObject, String())