📄 tdataseqasciiinterp.h
字号:
/*
========================================================================
DEVise Data Visualization Software
(c) Copyright 1992-1996
By the DEVise Development Group
Madison, Wisconsin
All Rights Reserved.
========================================================================
Under no circumstances is this software to be copied, distributed,
or altered in any way without prior permission from the DEVise
Development Group.
*/
/*
$Id: TDataSeqAsciiInterp.h,v 1.2 1996/11/22 20:41:16 flisakow Exp $
$Log: TDataSeqAsciiInterp.h,v $
Revision 1.2 1996/11/22 20:41:16 flisakow
Made variants of the TDataAscii classes for sequential access,
which build no indexes.
ReadRec() method now returns a status instead of void for every
class that has the method.
*/
/* interpreted sequential TData (no index) using parsed information */
#ifndef TDataSeqAsciiInterp_h
#define TDataSeqAsciiInterp_h
#include "DeviseTypes.h"
#include "ClassDir.h"
#include "TDataSeqAscii.h"
#include "AttrList.h"
class RecInterp;
class TDataSeqAsciiInterp: public TDataSeqAscii {
public:
TDataSeqAsciiInterp(char *name, char *type, char *param,
int recSize, AttrList *attrs,
char *separators, int numSeparators,
Boolean isSeparator, char *commentString);
~TDataSeqAsciiInterp();
AttrList *GetAttrList(){ return &_attrList; }
protected:
/* Decode a record and put data into buffer. Return false if
this line is not valid. */
Boolean Decode(void *recordBuf, int recPos, char *line);
void InvalidateIndex();
Boolean WriteIndex(int fd);
Boolean ReadIndex(int fd);
private:
AttrList _attrList; /* list of attributes */
Boolean hasComposite;
int _recSize;
char *_separators;
Boolean _isSeparator;
int _numSeparators;
char *_commentString; /* string for comment, or NULL */
int _commentStringLength; /* length of comment string */
int _numAttrs; /* # attributes (including composite) */
int _numPhysAttrs; /* number of physical attributes */
RecInterp *_recInterp;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -