mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[ntcore] Pass pub/sub options as a unified PubSubOptions struct (#4794)
In Java, PubSubOption is still used for passing options, but this simplifies C++ use substantially, as it allows aggregate construction.
This commit is contained in:
@@ -51,7 +51,7 @@ struct ServerMessage;
|
||||
|
||||
class Event;
|
||||
class Handle;
|
||||
class PubSubOptions;
|
||||
class PubSubOptionsImpl;
|
||||
class Value;
|
||||
|
||||
void PrintTo(const Event& event, std::ostream* os);
|
||||
@@ -60,6 +60,6 @@ void PrintTo(const net3::Message3& msg, std::ostream* os);
|
||||
void PrintTo(const net::ClientMessage& msg, std::ostream* os);
|
||||
void PrintTo(const net::ServerMessage& msg, std::ostream* os);
|
||||
void PrintTo(const Value& value, std::ostream* os);
|
||||
void PrintTo(const PubSubOptions& options, std::ostream* os);
|
||||
void PrintTo(const PubSubOptionsImpl& options, std::ostream* os);
|
||||
|
||||
} // namespace nt
|
||||
|
||||
Reference in New Issue
Block a user