mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
31 lines
985 B
C++
31 lines
985 B
C++
/*----------------------------------------------------------------------------*/
|
|
/* Copyright (c) FIRST 2015. All Rights Reserved. */
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
/* the project. */
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
#ifndef NT_VALUE_INTERNAL_H_
|
|
#define NT_VALUE_INTERNAL_H_
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "llvm/StringRef.h"
|
|
#include "ntcore_c.h"
|
|
|
|
namespace nt {
|
|
|
|
class Value;
|
|
|
|
void ConvertToC(const Value& in, NT_Value* out);
|
|
std::shared_ptr<Value> ConvertFromC(const NT_Value& value);
|
|
void ConvertToC(llvm::StringRef in, NT_String* out);
|
|
inline llvm::StringRef ConvertFromC(const NT_String& str) {
|
|
return llvm::StringRef(str.str, str.len);
|
|
}
|
|
|
|
} // namespace nt
|
|
|
|
#endif // NT_VALUE_INTERNAL_H_
|