#include #include #include "../../impl/fundamental/Buffer.hpp" #include "../../impl/fundamental/ByteStream.hpp" #include "../../impl/fundamental/CancellationToken.hpp" #include "../../impl/fundamental/Client.hpp" #include "../../impl/fundamental/Clock.hpp" #include "../../impl/fundamental/Condition.hpp" #include "../../impl/fundamental/Configuration.hpp" #include "../../impl/fundamental/Connection.hpp" #include "../../impl/fundamental/Deserializer.hpp" #include "../../impl/fundamental/Directory.hpp" #include "../../impl/fundamental/DnsResolver.hpp" #include "../../impl/fundamental/EnumDescriptor.hpp" #include "../../impl/fundamental/Environment.hpp" #include "../../impl/fundamental/Error.hpp" #include "../../impl/fundamental/Event.hpp" #include "../../impl/fundamental/EventBus.hpp" #include "../../impl/fundamental/File.hpp" #include "../../impl/fundamental/Future.hpp" #include "../../impl/fundamental/Handler.hpp" #include "../../impl/fundamental/Identifier.hpp" #include "../../impl/fundamental/Input.hpp" #include "../../impl/fundamental/Listener.hpp" #include "../../impl/fundamental/Mutex.hpp" #include "../../impl/fundamental/Name.hpp" #include "../../impl/fundamental/NetworkEndpoint.hpp" #include "../../impl/fundamental/Option.hpp" #include "../../impl/fundamental/Output.hpp" #include "../../impl/fundamental/Parameter.hpp" #include "../../impl/fundamental/Path.hpp" #include "../../impl/fundamental/Process.hpp" #include "../../impl/fundamental/Resource.hpp" #include "../../impl/fundamental/Result.hpp" #include "../../impl/fundamental/Router.hpp" #include "../../impl/fundamental/Scheduler.hpp" #include "../../impl/fundamental/Schema.hpp" #include "../../impl/fundamental/SecureChannel.hpp" #include "../../impl/fundamental/Serializer.hpp" #include "../../impl/fundamental/Server.hpp" #include "../../impl/fundamental/Service.hpp" #include "../../impl/fundamental/Session.hpp" #include "../../impl/fundamental/Status.hpp" #include "../../impl/fundamental/Task.hpp" #include "../../impl/fundamental/TcpTransport.hpp" #include "../../impl/fundamental/Thread.hpp" #include "../../impl/fundamental/Timer.hpp" #include "../../impl/fundamental/Transport.hpp" #include "../../impl/fundamental/TypeDescriptor.hpp" #include "../../impl/fundamental/UdpTransport.hpp" #include "../../impl/fundamental/Validator.hpp" #include "../../impl/fundamental/Version.hpp" #include "../../impl/conversation/Attachment.hpp" #include "../../impl/conversation/Command.hpp" #include "../../impl/conversation/CommandArgument.hpp" #include "../../impl/conversation/CommandResult.hpp" #include "../../impl/conversation/Content.hpp" #include "../../impl/conversation/Context.hpp" #include "../../impl/conversation/ContextItem.hpp" #include "../../impl/conversation/ContextWindow.hpp" #include "../../impl/conversation/Conversation.hpp" #include "../../impl/conversation/ConversationId.hpp" #include "../../impl/conversation/Identity.hpp" #include "../../impl/conversation/Intent.hpp" #include "../../impl/conversation/Message.hpp" #include "../../impl/conversation/MessageId.hpp" #include "../../impl/conversation/MessagePart.hpp" #include "../../impl/conversation/Participant.hpp" #include "../../impl/conversation/Reference.hpp" #include "../../impl/conversation/Reply.hpp" #include "../../impl/conversation/Response.hpp" #include "../../impl/conversation/ResponsePart.hpp" #include "../../impl/conversation/ResponseStatus.hpp" #include "../../impl/conversation/Role.hpp" #include "../../impl/conversation/Topic.hpp" #include "../../impl/conversation/Transcript.hpp" #include "../../impl/conversation/Turn.hpp" #define CHECK(T) static_assert(sizeof(T)>0,#T " incomplete"); static_assert(std::is_destructible_v,#T " not destructible") CHECK(sleela::fundamental::Buffer); CHECK(sleela::fundamental::ByteStream); CHECK(sleela::fundamental::CancellationToken); CHECK(sleela::fundamental::Client); CHECK(sleela::fundamental::Clock); CHECK(sleela::fundamental::Condition); CHECK(sleela::fundamental::Configuration); CHECK(sleela::fundamental::Connection); CHECK(sleela::fundamental::Deserializer); CHECK(sleela::fundamental::Directory); CHECK(sleela::fundamental::DnsResolver); CHECK(sleela::fundamental::EnumDescriptor); CHECK(sleela::fundamental::Environment); CHECK(sleela::fundamental::Error); CHECK(sleela::fundamental::Event); CHECK(sleela::fundamental::EventBus); CHECK(sleela::fundamental::File); CHECK(sleela::fundamental::Future); CHECK(sleela::fundamental::Handler); CHECK(sleela::fundamental::Identifier); CHECK(sleela::fundamental::Input); CHECK(sleela::fundamental::Listener); CHECK(sleela::fundamental::Mutex); CHECK(sleela::fundamental::Name); CHECK(sleela::fundamental::NetworkEndpoint); CHECK(sleela::fundamental::Option); CHECK(sleela::fundamental::Output); CHECK(sleela::fundamental::Parameter); CHECK(sleela::fundamental::Path); CHECK(sleela::fundamental::Process); CHECK(sleela::fundamental::Resource); CHECK(sleela::fundamental::Result); CHECK(sleela::fundamental::Router); CHECK(sleela::fundamental::Scheduler); CHECK(sleela::fundamental::Schema); CHECK(sleela::fundamental::SecureChannel); CHECK(sleela::fundamental::Serializer); CHECK(sleela::fundamental::Server); CHECK(sleela::fundamental::Service); CHECK(sleela::fundamental::Session); CHECK(sleela::fundamental::Status); CHECK(sleela::fundamental::Task); CHECK(sleela::fundamental::TcpTransport); CHECK(sleela::fundamental::Thread); CHECK(sleela::fundamental::Timer); CHECK(sleela::fundamental::Transport); CHECK(sleela::fundamental::TypeDescriptor); CHECK(sleela::fundamental::UdpTransport); CHECK(sleela::fundamental::Validator); CHECK(sleela::fundamental::Version); CHECK(sleela::conversation::Attachment); CHECK(sleela::conversation::Command); CHECK(sleela::conversation::CommandArgument); CHECK(sleela::conversation::CommandResult); CHECK(sleela::conversation::Content); CHECK(sleela::conversation::Context); CHECK(sleela::conversation::ContextItem); CHECK(sleela::conversation::ContextWindow); CHECK(sleela::conversation::Conversation); CHECK(sleela::conversation::ConversationId); CHECK(sleela::conversation::Identity); CHECK(sleela::conversation::Intent); CHECK(sleela::conversation::Message); CHECK(sleela::conversation::MessageId); CHECK(sleela::conversation::MessagePart); CHECK(sleela::conversation::Participant); CHECK(sleela::conversation::Reference); CHECK(sleela::conversation::Reply); CHECK(sleela::conversation::Response); CHECK(sleela::conversation::ResponsePart); CHECK(sleela::conversation::ResponseStatus); CHECK(sleela::conversation::Role); CHECK(sleela::conversation::Topic); CHECK(sleela::conversation::Transcript); CHECK(sleela::conversation::Turn); int main(){std::cout<<"PASS: foundational C++ class contracts\n";return 0;}