11cls_NetworkTable
22 .def(" getValue" , [](const NetworkTable &self, std::string_view key, py::object defaultValue) -> py::object {
3- nt::NetworkTableEntry entry;
3+ wpi:: nt::NetworkTableEntry entry;
44 {
55 py::gil_scoped_release release;
66 entry = self.GetEntry (key);
@@ -9,48 +9,48 @@ cls_NetworkTable
99 }, py::arg(" key" ), py::arg(" value" ))
1010
1111 // double overload must come before boolean version
12- .def(" putValue" , [](nt::NetworkTable *self, std::string_view key, double value) {
13- return self->PutValue (key, nt::Value::MakeDouble (value));
12+ .def(" putValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, double value) {
13+ return self->PutValue (key, wpi:: nt::Value::MakeDouble (value));
1414 }, py::arg(" key" ), py::arg(" value" ), release_gil())
15- .def(" putValue" , [](nt::NetworkTable *self, std::string_view key, bool value) {
16- return self->PutValue (key, nt::Value::MakeBoolean (value));
15+ .def(" putValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, bool value) {
16+ return self->PutValue (key, wpi:: nt::Value::MakeBoolean (value));
1717 }, py::arg(" key" ), py::arg(" value" ), release_gil())
18- .def(" putValue" , [](nt::NetworkTable *self, std::string_view key, py::bytes value) {
19- auto v = nt::Value::MakeRaw (value.cast <std::span<const uint8_t >>());
18+ .def(" putValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, py::bytes value) {
19+ auto v = wpi:: nt::Value::MakeRaw (value.cast <std::span<const uint8_t >>());
2020 py::gil_scoped_release release;
2121 return self->PutValue (key, v);
2222 }, py::arg(" key" ), py::arg(" value" ))
23- .def(" putValue" , [](nt::NetworkTable *self, std::string_view key, std::string value) {
24- return self->PutValue (key, nt::Value::MakeString (std::move (value)));
23+ .def(" putValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, std::string value) {
24+ return self->PutValue (key, wpi:: nt::Value::MakeString (std::move (value)));
2525 }, py::arg(" key" ), py::arg(" value" ), release_gil())
26- .def(" putValue" , [](nt::NetworkTable *self, std::string_view key, py::sequence value) {
26+ .def(" putValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, py::sequence value) {
2727 auto v = pyntcore::py2ntvalue (value);
2828 py::gil_scoped_release release;
2929 return self->PutValue (key, v);
3030 }, py::arg(" key" ), py::arg(" value" ))
3131
3232 // double overload must come before boolean version
33- .def(" setDefaultValue" , [](nt::NetworkTable *self, std::string_view key, double value) {
34- return self->SetDefaultValue (key, nt::Value::MakeDouble (value));
33+ .def(" setDefaultValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, double value) {
34+ return self->SetDefaultValue (key, wpi:: nt::Value::MakeDouble (value));
3535 }, py::arg(" key" ), py::arg(" value" ), release_gil())
36- .def(" setDefaultValue" , [](nt::NetworkTable *self, std::string_view key, bool value) {
37- return self->SetDefaultValue (key, nt::Value::MakeBoolean (value));
36+ .def(" setDefaultValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, bool value) {
37+ return self->SetDefaultValue (key, wpi:: nt::Value::MakeBoolean (value));
3838 }, py::arg(" key" ), py::arg(" value" ), release_gil())
39- .def(" setDefaultValue" , [](nt::NetworkTable *self, std::string_view key, py::bytes value) {
40- auto v = nt::Value::MakeRaw (value.cast <std::span<const uint8_t >>());
39+ .def(" setDefaultValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, py::bytes value) {
40+ auto v = wpi:: nt::Value::MakeRaw (value.cast <std::span<const uint8_t >>());
4141 py::gil_scoped_release release;
4242 return self->SetDefaultValue (key, v);
4343 }, py::arg(" key" ), py::arg(" value" ))
44- .def(" setDefaultValue" , [](nt::NetworkTable *self, std::string_view key, std::string value) {
45- return self->SetDefaultValue (key, nt::Value::MakeString (std::move (value)));
44+ .def(" setDefaultValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, std::string value) {
45+ return self->SetDefaultValue (key, wpi:: nt::Value::MakeString (std::move (value)));
4646 }, py::arg(" key" ), py::arg(" value" ), release_gil())
47- .def(" setDefaultValue" , [](nt::NetworkTable *self, std::string_view key, py::sequence value) {
47+ .def(" setDefaultValue" , [](wpi:: nt::NetworkTable *self, std::string_view key, py::sequence value) {
4848 auto v = pyntcore::py2ntvalue (value);
4949 py::gil_scoped_release release;
5050 return self->SetDefaultValue (key, v);
5151 }, py::arg(" key" ), py::arg(" value" ))
5252
53- .def(" __contains__" , [](const nt::NetworkTable &self, std::string_view key) -> bool {
53+ .def(" __contains__" , [](const wpi:: nt::NetworkTable &self, std::string_view key) -> bool {
5454 return self.ContainsKey (key);
5555 }, release_gil())
5656;
0 commit comments