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

Lines Matching defs:tag

320 std::ostream& operator<<(std::ostream& out, const CTag& tag)
323 if (tag.GetName().empty()) {
324 out << hex(tag.GetNameID()) << ' ' << DecodeTagNameID(tag.GetNameID());
326 out << TagNameString(tag.GetName()) << ' ';
328 if (tag.IsInt() && tag.GetName().length() > 1) {
329 wxCharBuffer ascii_name = tag.GetName().ToAscii();
333 if (tag.GetName().Mid(1).ToULong(&gapkey)) {
340 out << DecodeTagName(tag.GetName());
343 out << ", " << (unsigned)tag.GetType() << ' ' << DecodeTagType(tag.GetType()) << ", ";
344 if (tag.IsInt()) {
345 if (tag.GetName() == TAG_SOURCEIP) {
346 out << CKadIP(tag.GetInt());
347 } else if (tag.GetName() == TAG_SERVERIP) {
348 out << CeD2kIP(tag.GetInt());
349 } else if (tag.GetName() == TAG_ENCRYPTION) {
350 uint8_t enc = tag.GetInt();
360 } else if (tag.GetNameID() == FT_LASTSEENCOMPLETE
361 || tag.GetNameID() == FT_KADLASTPUBLISHSRC
362 || tag.GetNameID() == FT_KADLASTPUBLISHNOTES
363 || tag.GetNameID() == FT_KADLASTPUBLISHKEY
365 out << CTimeT(tag.GetInt());
366 } else if (tag.GetName() == TAG_FILESIZE
367 || tag.GetNameID() == FT_FILESIZE
368 || tag.GetNameID() == FT_TRANSFERRED
369 || tag.GetNameID() == FT_ATTRANSFERRED
371 out << tag.GetInt() << " (" << CastItoXBytes(tag.GetInt()) << ')';
372 } else if (tag.GetNameID() == FT_ULPRIORITY
373 || tag.GetNameID() == FT_DLPRIORITY
374 || tag.GetNameID() == FT_OLDULPRIORITY
375 || tag.GetNameID() == FT_OLDDLPRIORITY
377 out << tag.GetInt() << ' ';
378 switch (tag.GetInt()) {
388 out << tag.GetInt();
390 } else if (tag.IsStr()) {
391 out << MakePrintableString(tag.GetStr());
392 } else if (tag.IsFloat()) {
393 out << tag.GetFloat();
394 } else if (tag.IsHash()) {
395 out << tag.GetHash();
396 } else if (tag.IsBlob()) {
397 out << wxString::Format(wxT("(size = %u)"), tag.GetBlobSize());
398 } else if (tag.IsBsob()) {
399 out << wxString::Format(wxT("(size = %u)"), tag.GetBsobSize());
407 std::ostream& operator<<(std::ostream& out, const CServerTag& tag)
410 if (tag.GetName().empty()) {
411 out << hex(tag.GetNameID()) << ' ' << DecodeServerTagNameID(tag.GetNameID());
413 out << TagNameString(tag.GetName());
415 out << ", " << (unsigned)tag.GetType() << ' ' << DecodeTagType(tag.GetType()) << ", ";
416 if (tag.IsInt()) {
417 if (tag.GetNameID() == ST_DYNIP || tag.GetNameID() == ST_UDPKEYIP) {
418 out << CeD2kIP(tag.GetInt());
419 } else if (tag.GetNameID() == ST_UDPKEY) {
420 out << hex((uint32_t)tag.GetInt());
421 } else if (tag.GetNameID() == ST_UDPFLAGS) {
422 uint32_t flags = tag.GetInt();
436 } else if (tag.GetNameID() == ST_PREFERENCE) {
437 out << tag.GetInt() << ' ';
438 switch (tag.GetInt()) {
445 out << tag.GetInt();
447 } else if (tag.IsStr()) {
448 out << MakePrintableString(tag.GetStr());
449 } else if (tag.IsFloat()) {
450 out << tag.GetFloat();
451 } else if (tag.IsHash()) {
452 out << tag.GetHash();
453 } else if (tag.IsBlob()) {
454 out << wxString::Format(wxT("(size = %u)"), tag.GetBlobSize());
455 } else if (tag.IsBsob()) {
456 out << wxString::Format(wxT("(size = %u)"), tag.GetBsobSize());
464 std::ostream& operator<<(std::ostream& out, const CFriendTag& tag)
467 if (tag.GetName().empty()) {
468 out << hex(tag.GetNameID()) << ' ' << DecodeFriendTagNameID(tag.GetNameID());
470 out << TagNameString(tag.GetName());
472 out << ", " << (unsigned)tag.GetType() << ' ' << DecodeTagType(tag.GetType()) << ", ";
473 if (tag.IsInt()) {
474 out << tag.GetInt();
475 } else if (tag.IsStr()) {
476 out << MakePrintableString(tag.GetStr());
477 } else if (tag.IsFloat()) {
478 out << tag.GetFloat();
479 } else if (tag.IsHash()) {
480 out << tag.GetHash();
481 } else if (tag.IsBlob()) {
482 out << wxString::Format(wxT("(size = %u)"), tag.GetBlobSize());
483 } else if (tag.IsBsob()) {
484 out << wxString::Format(wxT("(size = %u)"), tag.GetBsobSize());