WPILib 2012
WPILibRoboticsLibraryforFRC
|
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 __NETWORK_BUTTON_H__ 00008 #define __NETWORK_BUTTON_H__ 00009 00010 #include "Buttons/Button.h" 00011 #include <string> 00012 00013 class NetworkTable; 00014 00015 class NetworkButton : public Button 00016 { 00017 public: 00018 NetworkButton(const char *tableName, const char *field); 00019 NetworkButton(NetworkTable* table, const char *field); 00020 virtual ~NetworkButton() {} 00021 00022 virtual bool Get(); 00023 00024 private: 00025 NetworkTable* m_netTable; 00026 std::string m_field; 00027 }; 00028 00029 #endif