mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Don't base Value on NT_Value.
Also use std::string instead of NT_String. Conversions to/from the internal structures will be done at the interface.
This commit is contained in:
committed by
Peter Johnson
parent
555725a05b
commit
9906116d23
@@ -102,17 +102,8 @@ class WireDecoder {
|
||||
}
|
||||
|
||||
bool ReadType(NT_Type* type);
|
||||
bool ReadValue(NT_Type type, NT_Value* value);
|
||||
bool ReadString(NT_String* str);
|
||||
|
||||
bool ReadValue(NT_Type type, Value* value) {
|
||||
NT_DisposeValue(value);
|
||||
return ReadValue(type, static_cast<NT_Value*>(value));
|
||||
}
|
||||
bool ReadString(StringValue* str) {
|
||||
NT_DisposeString(str);
|
||||
return ReadString(static_cast<NT_String*>(str));
|
||||
}
|
||||
bool ReadString(std::string* str);
|
||||
std::shared_ptr<Value> ReadValue(NT_Type type);
|
||||
|
||||
WireDecoder(const WireDecoder&) = delete;
|
||||
WireDecoder& operator=(const WireDecoder&) = delete;
|
||||
|
||||
Reference in New Issue
Block a user