• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/aMule-2.3.1/src/libs/ec/cpp/

Lines Matching defs:tag

42 //! Defines the Null tag which may be returned by GetTagByNameSafe.
170 CECTag::CECTag(const CECTag& tag)
173 *this = tag;
279 CECTag& CECTag::operator=(const CECTag& tag)
281 if (&tag != this) {
282 m_tagName = tag.m_tagName;
283 m_dataLen = tag.m_dataLen;
284 m_dataType = tag.m_dataType;
288 memcpy(m_tagData, tag.m_tagData, m_dataLen);
293 for (const_iterator it = tag.begin(); it != tag.end(); it++) {
304 bool CECTag::operator==(const CECTag& tag) const
306 return m_dataType == tag.m_dataType
307 && m_tagName == tag.m_tagName
308 && m_dataLen == tag.m_dataLen
310 || !memcmp(m_tagData, tag.m_tagData, m_dataLen))
311 && m_tagList == tag.m_tagList;
315 * Add a child tag to this one. The tag argument is reset to an empty tag.
317 * Be very careful that this method swallows the content of \e tag, leaving \e tag empty.
354 * @param tag a CECTag class instance to add.
355 * @return \b true if tag was really added,
358 bool CECTag::AddTag(const CECTag& tag, CValueMap* valuemap)
361 return valuemap->AddTag(tag, this);
366 // First add an empty tag.
368 // Then exchange the data. The original tag will be destroyed right after this call anyway.
371 CECTag& wtag = const_cast<CECTag&>(tag);
482 CECTag& tag = m_tagList.back();
483 if (!tag.ReadFromSocket(socket)) {
502 * Finds the (first) child tag with given name.
505 * @return the tag found, or NULL.
516 * Finds the (first) child tag with given name.
519 * @return the tag found, or NULL.
530 * Finds the (first) child tag with given name.
533 * @return the tag found, or a special null-valued tag otherwise.
565 // Empty tag - This is NOT an error.
580 // Empty tag - This is NOT an error.
657 * @return The double value of the tag.
700 const CECTag *tag = GetTagByName(tagname);
701 if (tag) {
702 ret = tag->GetInt() > 0;
712 const CECTag *tag = GetTagByName(tagname);
713 if (tag) {
714 target = tag->GetInt() > 0;
723 const CECTag *tag = GetTagByName(tagname);
724 if (tag) {
725 EC_ASSERT((tag->GetType() == EC_TAGTYPE_UINT8) || (m_dataType == EC_TAGTYPE_UNKNOWN));
726 ret = tag->GetInt();
736 const CECTag *tag = GetTagByName(tagname);
737 if (tag) {
738 EC_ASSERT((tag->GetType() == EC_TAGTYPE_UINT8) || (m_dataType == EC_TAGTYPE_UNKNOWN));
739 target = tag->GetInt();
748 const CECTag *tag = GetTagByName(tagname);
749 if (tag) {
751 (tag->GetType() == EC_TAGTYPE_UINT16)
752 || (tag->GetType() == EC_TAGTYPE_UINT8)
755 ret = tag->GetInt();
765 const CECTag *tag = GetTagByName(tagname);
766 if (tag) {
768 (tag->GetType() == EC_TAGTYPE_UINT16)
769 || (tag->GetType() == EC_TAGTYPE_UINT8)
772 target = tag->GetInt();
781 const CECTag *tag = GetTagByName(tagname);
782 if (tag) {
784 (tag->GetType() == EC_TAGTYPE_UINT32)
785 || (tag->GetType() == EC_TAGTYPE_UINT16)
786 || (tag->GetType() == EC_TAGTYPE_UINT8)
789 ret = tag->GetInt();
799 const CECTag *tag = GetTagByName(tagname);
800 if (tag) {
802 (tag->GetType() == EC_TAGTYPE_UINT32)
803 || (tag->GetType() == EC_TAGTYPE_UINT16)
804 || (tag->GetType() == EC_TAGTYPE_UINT8)
807 target = tag->GetInt();
816 const CECTag *tag = GetTagByName(tagname);
817 if (tag) {
818 ret = tag->GetInt();
828 const CECTag *tag = GetTagByName(tagname);
829 if (tag) {
830 target = tag->GetInt();
839 const CECTag *tag = GetTagByName(tagname);
840 if (tag) {
841 ret = tag->GetInt();
851 const CECTag *tag = GetTagByName(tagname);
852 if (tag) {
853 target = tag->GetInt();
862 const CECTag *tag = GetTagByName(tagname);
863 if (tag) {
864 ret = tag->GetDoubleData();
874 const CECTag *tag = GetTagByName(tagname);
875 if (tag) {
876 target = tag->GetDoubleData();
885 const CECTag *tag = GetTagByName(tagname);
886 if (tag) {
887 ret = tag->GetDoubleData();
897 const CECTag *tag = GetTagByName(tagname);
898 if (tag) {
899 target = tag->GetDoubleData();
908 const CECTag *tag = GetTagByName(tagname);
909 if (tag) {
910 ret = tag->GetMD4Data();
920 const CECTag *tag = GetTagByName(tagname);
921 if (tag) {
922 target = tag->GetMD4Data();
931 const CECTag *tag = GetTagByName(tagname);
932 if (tag) {
933 ret = tag->GetStringDataSTL();
943 const CECTag *tag = GetTagByName(tagname);
944 if (tag) {
945 target = tag->GetStringDataSTL();
955 const CECTag *tag = GetTagByName(tagname);
956 if (tag) {
957 ret = tag->GetStringData();
967 const CECTag *tag = GetTagByName(tagname);
968 if (tag) {
969 target = tag->GetStringData();
1047 * \brief Finds the indexth child tag.
1051 * \return The child tag, or NULL if index out of range.
1057 * \brief Finds the indexth child tag.
1061 * \return The child tag, or a special null-valued tag if index out of range.
1093 * \return The name of the tag.
1099 * \brief Returns the string data of the tag.
1105 * becuse it does not perform any check to see if the tag really contains a
1108 * \return The string data of the tag.
1116 * \brief Returns the uint8 data of the tag.
1120 * \return The uint8 data of the tag.
1128 * \brief Returns the uint16 data of the tag.
1132 * \return The uint16 data of the tag.
1140 * \brief Returns the uint32 data of the tag.
1144 * \return The uint32 data of the tag.
1152 * \brief Returns the uint64 data of the tag.
1156 * \return The uint64 data of the tag.