Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
/* $XConsortium: AttributeRec.h /main/3 1996/08/21 15:46:05 drk $ */
//----------------------------------------------
// AttributeRec.h
#ifndef ATT_REC_HDR
#define ATT_REC_HDR
#include "SGMLName.h"
class SGMLDefn;
class AttributeRec {
friend class OL_AttributeList;
friend class Token;
private:
int attName;
int attType;
const char *attValueString;
char *copy;
int attValue;
AttributeRec *next;
protected:
AttributeRec( const char * name, const char *value,
int type );
~AttributeRec();
public:
int getAttrName() const;
/* use this for CDATA attributes */
const char *getAttrValueString() const { return(attValueString); }
/* use this for NAME, NOTATION, ENTITY attributes */
int getAttValue() const { return(attValue); }
int getAttrType() const { return(attType); }
int operator== ( AttributeRec & s ) {
return ( attName == s.attName );
}
};
#endif