Now you can download a copy of these docs so you can use them offline! Download now
Entry.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/Entry.h" 00008 #include "NetworkTables/Key.h" 00009 #include "WPIErrors.h" 00010 00011 namespace NetworkTables 00012 { 00013 00014 UINT32 Entry::GetId() 00015 { 00016 return m_key->GetId(); 00017 } 00018 00019 void Entry::Encode(Buffer *buffer) 00020 { 00021 GetKey()->EncodeName(buffer); 00022 } 00023 00024 int Entry::GetInt() 00025 { 00026 wpi_setWPIError(NetworkTablesWrongType); 00027 return 0; 00028 } 00029 00030 double Entry::GetDouble() 00031 { 00032 wpi_setWPIError(NetworkTablesWrongType); 00033 return 0.0; 00034 } 00035 00036 bool Entry::GetBoolean() 00037 { 00038 wpi_setWPIError(NetworkTablesWrongType); 00039 return false; 00040 } 00041 00042 int Entry::GetString(char *str, int len) 00043 { 00044 wpi_setWPIError(NetworkTablesWrongType); 00045 return 0; 00046 } 00047 00048 std::string Entry::GetString() 00049 { 00050 wpi_setWPIError(NetworkTablesWrongType); 00051 return ""; 00052 } 00053 00054 NetworkTable *Entry::GetTable() 00055 { 00056 wpi_setWPIError(NetworkTablesWrongType); 00057 return NULL; 00058 } 00059 00060 } // namespace
Generated on Thu Jan 12 2012 22:35:20 for WPILibC++ by
1.7.1