#include <DictField.h>
Inheritance diagram for xmlUtil::DictField::

Public Methods | |
| DictField (DOM_Element elt) | |
| ~DictField () | |
| const std::string & | getName () const |
| bool | allowed (unsigned value) const |
| Does the specified value satisfy the constraints, if any? More... | |
| bool | accept (DictVisitor *vis) |
| DictConstraints * | getConstraints () const |
| DictField (const DictField &toCopy) | |
| DictField & | operator= (const DictField &) |
Private Methods | |
| DictField (const std::string &name, const DictConstraints &constraints) | |
| DictField (const std::string &name) | |
| void | deepCopy (const DictField &toCopy) |
Private Attributes | |
| DictConstraints * | m_constraints |
| std::string | m_name |
|
|
Definition at line 7 of file DictField.cxx. References m_constraints, and m_name. Referenced by DictField(), and getConstraints().
00007 {
00008 DOM_Element child = xml::Dom::getFirstChildElement(elt);
00009
00010 if (child != DOM_Element())
00011 m_constraints = new DictConstraints(child);
00012 else m_constraints = 0;
00013
00014 m_name = std::string(xml::Dom::transToChar(elt.getAttribute("name")));
00015 }
|
|
|
Definition at line 22 of file DictField.h. References m_constraints.
00022 { if (m_constraints) delete m_constraints;};
|
|
|
Definition at line 22 of file DictField.cxx. References deepCopy().
00022 : DictObject(toCopy) {
00023 deepCopy(toCopy);
00024 }
|
|
||||||||||||
|
Definition at line 39 of file DictField.h. References m_constraints, and m_name.
00040 : m_name(name) 00041 {m_constraints = new DictConstraints(constraints);} |
|
|
Definition at line 44 of file DictField.h. References DictField(), m_constraints, and m_name.
00044 : m_constraints(0), m_name(name) {} |
|
|
Reimplemented from xmlUtil::DictObject. Definition at line 29 of file DictField.h.
00029 {return vis->visitField(this);}
|
|
|
Does the specified value satisfy the constraints, if any?
Definition at line 17 of file DictField.cxx. References m_constraints.
00017 {
00018 if (m_constraints) return m_constraints->allowed(value);
00019 else return true;
00020 }
|
|
|
Definition at line 34 of file DictField.cxx. References m_constraints, and m_name. Referenced by DictField(), and operator=().
00034 {
00035 m_name = toCopy.m_name;
00036 if (toCopy.m_constraints) {
00037 m_constraints = new DictConstraints(*(toCopy.m_constraints));
00038 }
00039 else m_constraints = 0;
00040 }
|
|
|
Definition at line 30 of file DictField.h. References DictField(), and m_constraints.
00030 {return m_constraints;}
|
|
|
Definition at line 24 of file DictField.h. References m_name.
00024 {return m_name;}
|
|
|
Definition at line 26 of file DictField.cxx. References deepCopy(), and m_constraints.
00026 {
00027 if (this != &d) {
00028 if (m_constraints) delete m_constraints;
00029 deepCopy(d);
00030 }
00031 return *this;
00032 }
|
|
|
Definition at line 49 of file DictField.h. Referenced by allowed(), deepCopy(), DictField(), getConstraints(), operator=(), and ~DictField(). |
|
|
Definition at line 50 of file DictField.h. |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001