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