📄 compositeparser.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: CompositeParser.h,v 1.5 1996/09/05 23:14:17 kmurli Exp $ $Log: CompositeParser.h,v $ Revision 1.5 1996/09/05 23:14:17 kmurli Added a destructor to free the fileType char pointer after use. CVS ---------------------------------------------------------------------- Revision 1.4 1996/07/21 02:25:13 jussi Increased max. number of composite parsers from 20 to 100. Revision 1.3 1996/03/26 20:22:08 jussi Added copyright notice and cleaned up the code a bit. Revision 1.2 1995/09/05 22:14:37 jussi Added CVS header.*//* Composite parser for user to register a function to be called to decode composites*/#ifndef CompositeParser_h#define CompositeParser_hclass RecInterp;class AttrInfo;class UserComposite {public: /* This is called by the Composite parser to parse composite attributes */ virtual void Decode(RecInterp *recInterp) = 0;};struct CompositeEntry { char *fileType; UserComposite *userComposite;};const int MAX_COMPOSITE_ENTRIES = 100;class CompositeParser {public: static void Register(char *fileType, UserComposite *userComposite); /* called by parser when it needs a composite attribute parsed */ static void Decode(char *fileType, RecInterp *recInterp); ~CompositeParser();private: static CompositeEntry _entries[MAX_COMPOSITE_ENTRIES]; static int _numEntries; static int _hintIndex;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -