#include <container.hh>
Inheritance diagram for mpcl::text::html::TContainer:
Public Types | |
typedef TMap< TString, QTTag > | TStringToTagMap |
Vector type with smart-pointers to tags. | |
Public Methods | |
void | clear (void) |
Clears instance. | |
virtual QTTag | findOrInsertTag (const TString &rkyIDENTIFIER) |
void | insertAs (const TString &rkyTAG_IDENTIFIER, const QTTag &rkqtTAG, iterator tINDEX) |
virtual void | insertUpdating (const QTTag &rkqtTAG) |
virtual void | insertUpdating (const QTTag &rkqtTAG, iterator tINDEX) |
virtual void | insert (const QTTag &rkqtTAG) |
virtual void | insert (const QTTag &rkqtTAG, iterator tINDEX) |
void | reset (void) |
Clears attribute "value". | |
void | setClass (const TString &rkyCLASS, bool gDELEGATE=false) |
void | setClass (const char *pkcCLASS, bool gDELEGATE=false) |
void | setId (const char *pkcID, bool gDELEGATE=false) |
void | setId (const TString &rkyID, bool gDELEGATE=false) |
void | update (void) |
iterator | begin (void) |
const_iterator | begin (void) const |
iterator | end (void) |
const_iterator | end (void) const |
virtual QTTag | findTag (const TString &rkyIDENTIFIER) const |
virtual bool | hasTag (const TString &rkyIDENTIFIER) const |
QTTag | tag (const TString &rkyIDENTIFIER) const |
const TTag & | operator[] (const char *pkcIDENTIFIER) const |
const TTag & | operator[] (const TString &rkyIDENTIFIER) const |
TTag & | operator[] (const char *pkcIDENTIFIER) |
TTag & | operator[] (const TString &rkyIDENTIFIER) |
size_type | size (void) const |
Protected Methods | |
void | writeUsing (std::basic_ostream< char > &rtTARGET_OSTREAM, const TString &rkyQUALIFIED_IDENTIFIER) const |
Protected Attributes | |
TTagList | tTagList |
List with smart-pointers (to HTML tags). | |
TStringToTagMap | tStringToTagMap |
When you insert an anonymous tag (without identifier), it is given a random identifier (for the container map, the tag identifier remains untouched). If you insert two times the same tag, it is given an extended identifier (for the container map only).
When a tag is inserted and its name is already in the container, then its name is mangled using character '_'.
Container instances that were trying to supplant another tag, must overload the next member functions:
operator[](), identifier(), value() and setValue().
Requirements: All tags contained have to be allocated with the new operator, because when the container is destroyed, all tags contained are deleted.
Definition at line 82 of file container.hh.
|
Tries to find a tag named rkyIDENTIFIER from the tags stored (if any) in this instance, within first class. If the tag is not found then it is inserted.
Reimplemented in mpcl::text::html::TLayoutTable, and mpcl::text::html::TTable. Definition at line 35 of file container.cc. References mpcl::text::Format(), insert(), mpcl::text::html::TTag::isDynamiclyLoadable(), mpcl::text::html::kcIdentifierSeparator, mpcl::text::html::QTTag, mpcl::text::TString, tStringToTagMap, and mpcl::text::html::TTag::TTag(). Referenced by mpcl::text::html::TTable::findOrInsertTag(), mpcl::text::html::TLayoutTable::findOrInsertTag(), and mpcl::text::html::TForm::setValues(). |
|
Tries to find a tag named rkyIDENTIFIER from the tags stored (if any) in this instance, within first class.
Reimplemented in mpcl::text::html::TLayoutTable. Definition at line 216 of file container.cc. References mpcl::text::html::kcIdentifierSeparator, mpcl::text::html::QTTag, mpcl::text::TString, and tStringToTagMap. Referenced by mpcl::text::html::TLayoutTable::findTag(), hasTag(), and tag(). |
|
Returns true if there is an tag named rkyIDENTIFIER between the tags stored (if any) in this instance, within first class.
Definition at line 297 of file container.hh. References findTag(), and mpcl::text::TString. |
|
Inserts smart pointer rqtTAG into this container.
Definition at line 198 of file container.hh. References insertUpdating(), mpcl::text::html::TTag::iterator, and mpcl::text::html::QTTag. |
|
Inserts smart pointer rqtTAG into this container.
Definition at line 187 of file container.hh. References insertUpdating(), and mpcl::text::html::QTTag. Referenced by mpcl::text::html::TTable::findOrInsertTag(), mpcl::text::html::TLayoutTable::findOrInsertTag(), findOrInsertTag(), mpcl::text::html::TAnchor::TAnchor(), mpcl::text::html::TPage::TPage(), and mpcl::text::html::TTableCell::TTableCell(). |
|
Inserts the pointer rkqtTAG into this container, with name rkyTAG_IDENTIFIER.
Definition at line 97 of file container.cc. References mpcl::text::html::QTTag, mpcl::text::TString, tStringToTagMap, and tTagList. Referenced by mpcl::text::html::TSubmitGroup::insertUpdating(), mpcl::text::html::TSelect::insertUpdating(), mpcl::text::html::TRadioGroup::insertUpdating(), mpcl::text::html::TImageSubmitGroup::insertUpdating(), insertUpdating(), and mpcl::text::html::TCheckboxGroup::insertUpdating(). |
|
Inserts the smart pointer rqtTAG into this container. This member method is used to update the source tag pointed by rqtTAG and then, to insert that tag into this container.
Reimplemented in mpcl::text::html::TCheckboxGroup, mpcl::text::html::TImageSubmitGroup, mpcl::text::html::TRadioGroup, mpcl::text::html::TSelect, and mpcl::text::html::TSubmitGroup. Definition at line 178 of file container.hh. References insertAs(), mpcl::text::html::TTag::iterator, and mpcl::text::html::QTTag. |
|
Inserts the smart pointer rqtTAG into this container. This member method is used to update the source tag pointed by rqtTAG and then, to insert that tag into this container.
Reimplemented in mpcl::text::html::TCheckboxGroup, mpcl::text::html::TImageSubmitGroup, mpcl::text::html::TRadioGroup, mpcl::text::html::TSelect, and mpcl::text::html::TSubmitGroup. Definition at line 165 of file container.hh. References insertAs(), and mpcl::text::html::QTTag. Referenced by insert(). |
|
Gets the tag named rkyIDENTIFIER from the tags stored (if any) in this instance, within first class. It is a synonym of tag().
Reimplemented from mpcl::text::html::TTag. Definition at line 343 of file container.hh. References tag(), and mpcl::text::TString. |
|
Gets the tag named pkcIDENTIFIER from the tags stored (if any) in this instance, within first class. It is a synonym of tag().
Reimplemented from mpcl::text::html::TTag. Definition at line 332 of file container.hh. References tag(). |
|
Gets the tag named rkyIDENTIFIER from the tags stored (if any) in this instance, within first class. It is a synonym of tag().
Reimplemented from mpcl::text::html::TTag. Definition at line 321 of file container.hh. References tag(), and mpcl::text::TString. |
|
Gets the tag named pkcIDENTIFIER from the tags stored (if any) in this instance, within first class. It is a synonym of tag().
Reimplemented from mpcl::text::html::TTag. Definition at line 310 of file container.hh. References tag(). |
|
Sets CSS class.
Reimplemented from mpcl::text::html::TTag. Definition at line 193 of file container.cc. References mpcl::text::html::TTag::iterator, and tTagList. |
|
Sets CSS class.
Reimplemented from mpcl::text::html::TTag. Definition at line 174 of file container.cc. References mpcl::text::html::TTag::iterator, mpcl::text::TString, and tTagList. |
|
Assigns a value to the attribute "id" in the attribute map.
Reimplemented from mpcl::text::html::TTag. Definition at line 155 of file container.cc. References mpcl::text::html::TTag::iterator, mpcl::text::TString, and tTagList. |
|
Assigns a value to the attribute "id" in the attribute map.
Reimplemented from mpcl::text::html::TTag. Definition at line 136 of file container.cc. References mpcl::text::html::TTag::iterator, and tTagList. |
|
Gets the number of tags stored in this instance, within second class.
Reimplemented from mpcl::text::html::TTag. Definition at line 353 of file container.hh. References mpcl::text::html::TTag::size_type, and tTagList. |
|
Gets the tag named rkyIDENTIFIER from the tags stored (if any) in this instance, within first class.
Reimplemented from mpcl::text::html::TTag. Definition at line 265 of file container.cc. References findTag(), mpcl::text::Format(), mpcl::text::html::QTTag, and mpcl::text::TString. Referenced by operator[](). |
|
Updates the object. This member function is used by HTML containers to update the value of the object, before writing the object onto a stream. Reimplemented from mpcl::text::html::TTag. Definition at line 245 of file container.hh. References mpcl::text::html::TTag::iterator, and tTagList. |
|
Writes on rtTARGET_OSTREAM this i nstance, using the identifier rkyQUALIFIED_IDENTIFIER plus qualified identifier.
Reimplemented from mpcl::text::html::TTag. Reimplemented in mpcl::text::html::TPatternPage. Definition at line 282 of file container.cc. References mpcl::text::html::TTag::const_iterator, mpcl::text::html::TTag::gForwardIdentifier, mpcl::text::html::TTag::gIsQualified, mpcl::text::html::TTag::isVisible(), mpcl::text::html::kcIdentifierSeparator, mpcl::text::html::TTag::qualifiedIdentifier(), mpcl::text::html::TTag::tAttributeMap, mpcl::text::TString, mpcl::util::collection::TStringToStringMap, and tTagList. |
|
Map with tag pseudo-identifiers to smart-pointers (to HTML tags). This class hasn't any order, but it must exist to enable random access. Definition at line 103 of file container.hh. Referenced by clear(), mpcl::text::html::TTable::findOrInsertTag(), mpcl::text::html::TLayoutTable::findOrInsertTag(), findOrInsertTag(), mpcl::text::html::TLayoutTable::findTag(), findTag(), insertAs(), and mpcl::text::html::TPatternPage::writeUsing(). |