#include <freProfileRequirement.h>


Public Types | |
| typedef ProfileRequirement | Self |
| typedef XMLCollectionBase < ProfileOption > | Superclass |
| typedef itk::SmartPointer < Self > | Pointer |
| typedef itk::SmartPointer < const Self > | ConstPointer |
| typedef FREE::XMLCollectionBase < ProfileOption > ::ElementsCountType | ElementsCountType |
Public Member Functions | |
| virtual const char * | GetNameOfClass () const |
| virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
| bool | GetIsNegated () const |
| void | SetIsNegated (const bool &Negated) |
| IDPath | GetDestination () const |
| void | SetDestination (const IDPath &destination) |
| IDPath | GetSource () const |
| void | SetSource (const IDPath &source) |
| ProfileOption * | AddProfileOption () |
| void | ResetProfilOptions () |
| bool | ProfileMatchesRequirement (const ControllerProfileBase &profile) const |
| ProfileRequirement & | operator= (const ProfileRequirement &rRequirement) |
| virtual void | Reset () |
Static Public Member Functions | |
| static Pointer | New (void) |
Protected Member Functions | |
| ProfileRequirement () | |
| virtual | ~ProfileRequirement () |
| virtual void | SubElementLoadProcessing (const std::string &rsXMLSubTag, const std::string &rsXMLSubElement, const std::string &rsXMLSubData) |
| virtual void | AttributesLoadProcessing (const AttributesType &rAttributes) |
| virtual void | SaveAttributes (AttributesSaveListType &rAttributes) const |
Protected Attributes | |
| bool | m_bNegated |
| IDPath | m_Destination |
| IDPath | m_Source |
Private Member Functions | |
| ProfileRequirement (const ProfileRequirement &rRequirement) | |
Definition at line 41 of file freProfileRequirement.h.
Definition at line 44 of file freProfileRequirement.h.
Reimplemented from FREE::XMLCollectionBase< TXMLElement >.
Definition at line 45 of file freProfileRequirement.h.
| typedef itk::SmartPointer<Self> FREE::CtrlProfile::ProfileRequirement::Pointer |
Definition at line 46 of file freProfileRequirement.h.
| typedef itk::SmartPointer<const Self> FREE::CtrlProfile::ProfileRequirement::ConstPointer |
Definition at line 47 of file freProfileRequirement.h.
| typedef FREE::XMLCollectionBase<ProfileOption>::ElementsCountType FREE::CtrlProfile::ProfileRequirement::ElementsCountType |
Reimplemented from FREE::XMLCollectionBase< TXMLElement >.
Definition at line 50 of file freProfileRequirement.h.
| FREE::CtrlProfile::ProfileRequirement::ProfileRequirement | ( | ) | [protected] |
Definition at line 68 of file freProfileRequirement.cxx.
References FREE::cXML_CP_Requirement, Reset(), and FREE::XMLStreamObject::SetXMLTag().

| FREE::CtrlProfile::ProfileRequirement::~ProfileRequirement | ( | ) | [protected, virtual] |
Definition at line 85 of file freProfileRequirement.cxx.
References Reset().

| FREE::CtrlProfile::ProfileRequirement::ProfileRequirement | ( | const ProfileRequirement & | rRequirement | ) | [private] |
suppresses default copy constructor
| virtual const char* FREE::CtrlProfile::ProfileRequirement::GetNameOfClass | ( | ) | const [inline, virtual] |
Reimplemented from FREE::XMLCollectionBase< TXMLElement >.
Definition at line 49 of file freProfileRequirement.h.
| static Pointer FREE::CtrlProfile::ProfileRequirement::New | ( | void | ) | [inline, static] |
Definition at line 50 of file freProfileRequirement.h.
Referenced by FREE::CtrlProfile::ProfileRequirements::AddRequirement(), and FREE::CtrlProfile::ProfileRequirements::SubElementLoadProcessing().
| virtual ::itk::LightObject::Pointer FREE::CtrlProfile::ProfileRequirement::CreateAnother | ( | void | ) | const [inline, virtual] |
Definition at line 50 of file freProfileRequirement.h.
| bool FREE::CtrlProfile::ProfileRequirement::GetIsNegated | ( | ) | const [inline] |
| void FREE::CtrlProfile::ProfileRequirement::SetIsNegated | ( | const bool & | Negated | ) | [inline] |
| IDPath FREE::CtrlProfile::ProfileRequirement::GetDestination | ( | ) | const [inline] |
| void FREE::CtrlProfile::ProfileRequirement::SetDestination | ( | const IDPath & | destination | ) | [inline] |
| IDPath FREE::CtrlProfile::ProfileRequirement::GetSource | ( | ) | const [inline] |
| void FREE::CtrlProfile::ProfileRequirement::SetSource | ( | const IDPath & | source | ) | [inline] |
| ProfileOption * FREE::CtrlProfile::ProfileRequirement::AddProfileOption | ( | ) |
Adds a profile option to the requirements and returns it.
Implementation of FREE::CtrlProfile::ProfileRequirement /////////////////////
Definition at line 37 of file freProfileRequirement.cxx.
References FREE::SmartCollectionBase< TXMLElement >::AddElement(), and FREE::CtrlProfile::ProfileOption::New().

| void FREE::CtrlProfile::ProfileRequirement::ResetProfilOptions | ( | ) |
| bool FREE::CtrlProfile::ProfileRequirement::ProfileMatchesRequirement | ( | const ControllerProfileBase & | profile | ) | const |
Function checks of the profile option matches the passed profile and returns the checking result.
| profile | The profile that should be compared with the profile option (this). |
Definition at line 53 of file freProfileRequirement.cxx.
References FREE::SmartCollectionBase< TXMLElement >::GetElement(), m_bNegated, FREE::CtrlProfile::ProfileOption::ProfileMatchesOption(), and FREE::CollectionBase< TXMLElement, itk::SmartPointer< TXMLElement > >::Size().

| ProfileRequirement & FREE::CtrlProfile::ProfileRequirement::operator= | ( | const ProfileRequirement & | rRequirement | ) |
Assignment operator.
Definition at line 76 of file freProfileRequirement.cxx.
References FREE::XMLStreamObject::LoadFromString(), and FREE::XMLStreamObject::SaveToString().

| void FREE::CtrlProfile::ProfileRequirement::Reset | ( | ) | [virtual] |
Resets the sections array.
Reimplemented from FREE::XMLCollectionBase< TXMLElement >.
Definition at line 92 of file freProfileRequirement.cxx.
References FREE::cIDPSelf, m_bNegated, m_Destination, m_Source, and ResetProfilOptions().
Referenced by ProfileRequirement(), and ~ProfileRequirement().

| void FREE::CtrlProfile::ProfileRequirement::SubElementLoadProcessing | ( | const std::string & | rsXMLSubTag, | |
| const std::string & | rsXMLSubElement, | |||
| const std::string & | rsXMLSubData | |||
| ) | [protected, virtual] |
Reimplemented from FREE::XMLStreamObject.
Definition at line 102 of file freProfileRequirement.cxx.
References FREE::SmartCollectionBase< TXMLElement >::AddElement(), catchAllNPassMacro, FREE::cXML_CP_ProfileOption, FREE::XMLStreamObject::cXML_Text, FREE::CtrlProfile::ProfileOption::New(), and throwExceptionMacro.

| void FREE::CtrlProfile::ProfileRequirement::AttributesLoadProcessing | ( | const AttributesType & | rAttributes | ) | [protected, virtual] |
Definition at line 121 of file freProfileRequirement.cxx.
References FREE::cXML_CP_RequDestination, FREE::cXML_CP_RequNegated, m_bNegated, m_Destination, and FREE::Convert::ToBool().

| void FREE::CtrlProfile::ProfileRequirement::SaveAttributes | ( | AttributesSaveListType & | rAttributes | ) | const [protected, virtual] |
Definition at line 132 of file freProfileRequirement.cxx.
References FREE::cXML_CP_RequDestination, FREE::cXML_CP_RequNegated, m_bNegated, and m_Destination.
bool FREE::CtrlProfile::ProfileRequirement::m_bNegated [protected] |
indicates of the check result of the requirement should be negated
Definition at line 94 of file freProfileRequirement.h.
Referenced by AttributesLoadProcessing(), GetIsNegated(), ProfileMatchesRequirement(), Reset(), SaveAttributes(), and SetIsNegated().
IDPath to the component, which should be checked.
Definition at line 97 of file freProfileRequirement.h.
Referenced by AttributesLoadProcessing(), GetDestination(), Reset(), SaveAttributes(), and SetDestination().
IDPath to the component, which states the requirement. Neede for cache functionality, if not all requirements in on collection are from the same component. This is an information that won't be saved, its only purpose is as temporary cache information.
Definition at line 104 of file freProfileRequirement.h.
Referenced by GetSource(), Reset(), and SetSource().
1.5.3 written by Dimitri van Heesch,
© 1997-2000