Ejemplo n.º 1
0
// Dump the object's internal state.
void PublishContentContainer::dumpState()
{
   // indented 8 and 10

   UtlString key(*this);
   key.replace(sizeof (CONTENT_KEY_SEPARATOR) - 1,
               key.index(CONTENT_KEY_SEPARATOR),
               " ");
   Os::Logger::instance().log(FAC_RLS, PRI_INFO,
                 "\t        PublishContentContainer %p UtlString = '%s'",
                 this, data());

   int index = 0;
   UtlSListIterator content_itor(mEventContent);
   HttpBody* body;
   while ((body = dynamic_cast <HttpBody*> (content_itor())))
   {
      Os::Logger::instance().log(FAC_RLS, PRI_INFO,
                    "\t          mEventContent[%d] = '%s':'%s'",
                    index, body->data(), body->getBytes());
      index++;
   }
}
Ejemplo n.º 2
0
// Dump the object's internal state.
void PublishContentContainer::dumpState()
{
    // indented 8 and 10

    OsSysLog::add(FAC_RLS, PRI_INFO,
                  "\t        PublishContentContainer %p UtlString = '%s'",
                  this, data());

    int index = 0;
    UtlSListIterator content_itor(mEventContent);
    UtlSListIterator version_itor(mEventVersion);
    HttpBody* body;
    while ((body = dynamic_cast <HttpBody*> (content_itor())))
    {
        UtlInt* version = dynamic_cast <UtlInt*> (version_itor());
        OsSysLog::add(FAC_RLS, PRI_INFO,
                      "\t          mEventVersion[%d] = %" PRIdPTR ", "
                      "mEventContent[%d] = '%s':'%s'",
                      index, version->getValue(),
                      index, body->data(), body->getBytes());
        index++;
    }
}