Now you can download a copy of these docs so you can use them offline! Download now
TableEntry.cpp
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 #include "NetworkTables/TableEntry.h" 00008 #include "NetworkTables/InterfaceConstants.h" 00009 #include "NetworkTables/NetworkTable.h" 00010 00011 namespace NetworkTables 00012 { 00013 00014 TableEntry::TableEntry(NetworkTable *value) : 00015 m_value(value) 00016 { 00017 } 00018 00019 NetworkTables_Types TableEntry::GetType() 00020 { 00021 return kNetworkTables_Types_TABLE; 00022 } 00023 00024 void TableEntry::Encode(Buffer *buffer) 00025 { 00026 Entry::Encode(buffer); 00027 m_value->EncodeName(buffer); 00028 } 00029 00030 NetworkTable *TableEntry::GetTable() 00031 { 00032 return m_value; 00033 } 00034 00035 } // namespace
Generated on Thu Jan 12 2012 22:35:24 for WPILibC++ by
1.7.1