From bd6f1415823a473da4518769fc292c10330d821d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Sep 2009 18:14:00 +0200 Subject: Start tracking libxsd-frontend with git --- xsd-frontend/semantic-graph/attribute.hxx | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 xsd-frontend/semantic-graph/attribute.hxx (limited to 'xsd-frontend/semantic-graph/attribute.hxx') diff --git a/xsd-frontend/semantic-graph/attribute.hxx b/xsd-frontend/semantic-graph/attribute.hxx new file mode 100644 index 0000000..08f08bf --- /dev/null +++ b/xsd-frontend/semantic-graph/attribute.hxx @@ -0,0 +1,39 @@ +// file : xsd-frontend/semantic-graph/attribute.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2005-2009 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifndef XSD_FRONTEND_SEMANTIC_GRAPH_ATTRIBUTE_HXX +#define XSD_FRONTEND_SEMANTIC_GRAPH_ATTRIBUTE_HXX + +#include + +namespace XSDFrontend +{ + namespace SemanticGraph + { + class Attribute: public virtual Member + { + public: + Boolean + optional () const + { + return optional_; + } + + protected: + friend class Bits::Graph; + + Attribute (Path const& file, + UnsignedLong line, + UnsignedLong column, + Boolean optional, + Boolean global, + Boolean qualified); + private: + Boolean optional_; + }; + } +} + +#endif // XSD_FRONTEND_SEMANTIC_GRAPH_ATTRIBUTE_HXX -- cgit v1.1