Can someone explain to me what this C++ code is doing? Specifically, the timeStamp portions of it. I don't see any classes that implement this use the timeStamp anywhere. There is a method to get the timeStamp, but that isn't used anywhere. I don't see any place the timeStamp is being set either, except it looks like it's defaulting to 0.0f.
Display All
Source Code
- class BaseEventData : public IEventData
- {
- const float m_timeStamp;
- public:
- explicit BaseEventData(const float timeStamp = 0.0f) : m_timeStamp(timeStamp) { }
- // Returns the type of the event
- virtual const EventType& VGetEventType(void) const = 0;
- float GetTimeStamp(void) const { return m_timeStamp; }
- // Serializing for network input / output
- virtual void VSerialize(std::ostrstream &out) const { }
- virtual void VDeserialize(std::istrstream& in) { }
- };