delphi结构体转c++结构体_有一个c++的结构体如何转为delphi的,请达人帮忙。

structSequence{//realsequence,ifitisnotstoredswapfile:char*data;//lengthofthesequence:intsize;intbufsize;//uint32_tstats;//ifswap!=NULL,thesequenceisstoredinfile.//swapis...

struct Sequence

{

// real sequence, if it is not stored swap file:

char *data;

// length of the sequence:

int size;

int bufsize;

//uint32_t stats;

// if swap != NULL, the sequence is stored in file.

// swap is opened as temporary file, which will be deleted automatically

// after the program is finished:

FILE *swap;

// stream offset of the sequence:

int offset;

// stream offset of the description string in the database:

size_t des_begin;

// length of the description:

int des_length;

// length of the description in quality score part:

int des_length2;

// length of data in fasta file, including line wrapping:

int dat_length;

char *identifier;

// index of the sequence in the original database:

int index;

short state;

int cluster_id;

float identity;

float distance;

int coverage[4];

Sequence();

Sequence( const Sequence & other );

~Sequence();

void Clear();

void operator=( const char *s );

void operator+=( const char *s );

void Resize( int n );

void Reserve( int n );

void Swap( Sequence & other );

int Format();

void ConvertBases();

void SwapIn();

void SwapOut();

void PrintInfo( int id, FILE *fin, FILE *fout, const Options & options, char *buf );

};

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值