WPILib 2012
WPILibRoboticsLibraryforFRC
NetworkTables/OldData.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2011. All Rights Reserved.                             */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef __OLD_DATA_H__
00008 #define __OLD_DATA_H__
00009 
00010 #include "NetworkTables/Data.h"
00011 #include <vxWorks.h>
00012 
00013 namespace NetworkTables
00014 {
00015 class Buffer;
00016 class Entry;
00017 
00018 class OldData : public Data
00019 {
00020 public:
00021         OldData(Entry *entry);
00022         virtual void Encode(Buffer *buffer);
00023         virtual bool IsOldData() {return true;}
00024         Entry *GetEntry() {return m_entry;}
00025 
00026 private:
00027         Entry *m_entry;
00028 };
00029 
00030 } // namespace
00031 
00032 #endif
 All Classes Functions Variables