WPILib 2012
WPILibRoboticsLibraryforFRC
NetworkTables/IntegerEntry.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 __INTEGER_ENTRY_H__
00008 #define __INTEGER_ENTRY_H__
00009 
00010 #include "NetworkTables/Entry.h"
00011 #include "NetworkTables/InterfaceConstants.h"
00012 #include <vxWorks.h>
00013 
00014 class NetworkTable;
00015 
00016 namespace NetworkTables
00017 {
00018 
00019 class Buffer;
00020 
00021 class IntegerEntry : public Entry {
00022 public:
00023         IntegerEntry(int value);
00024         virtual NetworkTables_Types GetType();
00025         virtual void Encode(Buffer *buffer);
00026         virtual int GetInt();
00027 
00028 private:
00029         int m_value;
00030 };
00031 
00032 } // namespace
00033 
00034 #endif
 All Classes Functions Variables