Now you can download a copy of these docs so you can use them offline! Download now
TableAssignment.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/TableAssignment.h" 00008 #include "NetworkTables/Buffer.h" 00009 #include "NetworkTables/InterfaceConstants.h" 00010 #include "NetworkTables/NetworkTable.h" 00011 00012 namespace NetworkTables 00013 { 00014 00015 TableAssignment::TableAssignment(NetworkTable *table, int alteriorId) : 00016 m_table(table), 00017 m_alteriorId(alteriorId) 00018 { 00019 } 00020 00021 void TableAssignment::Encode(Buffer *buffer) 00022 { 00023 buffer->WriteByte(kNetworkTables_TABLE_ASSIGNMENT); 00024 buffer->WriteTableId(m_alteriorId); 00025 m_table->EncodeName(buffer); 00026 } 00027 00028 } // namespace
Generated on Thu Jan 12 2012 22:35:24 for WPILibC++ by
1.7.1