Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

# Tools/Debugging/GenericDebugData.cpp

Go to the documentation of this file.

    00001 /**
    00002 * @file GenericDebugData.cpp
    00003 *
    00004 * Implementation of class GenericDebugData.
    00005 */
    00006
    00007 #include "GenericDebugData.h"
    00008 #
    00009 GenericDebugData::GenericDebugData()
    00010 { }
    00011 GenericDebugData::~GenericDebugData()
    00012 { }
    00013
    00014 In& operator>>(In& stream, GenericDebugData& d)
    00015 {
    00016   int id; // = (int )d.id;
    00017   stream >> id;
    00018   d.id = (GenericDebugData::GenericDebugDataID ) id;
    00019
    00020   for(int i = 0; i < 10; i++)
    00021   {
    00022     stream >> d.data[i];
    00023   }
    00024
    00025   return stream;
    00026 }
    00027
    00028 Out& operator<<(Out& stream, GenericDebugData& d)
    00029 {
    00030   int id = (int )d.id;
    00031   stream << id;
    00032
    00033   for(int i = 0; i < 10; i++)
    00034   {
    00035     stream << d.data[i];
    00036   }
    00037
    00038   return stream;
    00039 }
    00040