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 __CONFIRMATION_H__ 00008 #define __CONFIRMATION_H__ 00009 00010 #include "NetworkTables/Data.h" 00011 00012 namespace NetworkTables 00013 { 00014 00015 class Buffer; 00016 00017 class Confirmation : public Data 00018 { 00019 public: 00020 Confirmation(int count); 00021 virtual void Encode(Buffer *buffer); 00022 private: 00023 static Confirmation *Combine(Confirmation *a, Confirmation *b); 00024 00025 int m_count; 00026 }; 00027 00028 } // namespace 00029 00030 #endif