]> git.sesse.net Git - casparcg/blobdiff - shell/generate_docs.cpp
[CG] Created producer that wraps a CG producer in a way that it can be treated as...
[casparcg] / shell / generate_docs.cpp
index f57e541cfff094d806be23db6a39239479b814a7..c5ea1807cf909ee2ad513302877e68049dbff145 100644 (file)
 #include <core/help/help_repository.h>
 #include <core/help/help_sink.h>
 #include <core/help/util.h>
+#include <core/consumer/syncto/syncto_consumer.h>
 #include <core/producer/text/text_producer.h>
+#include <core/producer/scene/xml_scene_producer.h>
+#include <core/producer/cg_proxy.h>
 
 #include <protocol/amcp/amcp_command_repository.h>
 #include <protocol/amcp/AMCPCommandsImpl.h>
@@ -69,6 +72,12 @@ public:
                return shared_from_this();
        };
 
+       spl::shared_ptr<paragraph_builder> strong(std::wstring text) override
+       {
+               out_ << L"'''" << std::move(text) << L"'''";
+               return shared_from_this();
+       };
+
        spl::shared_ptr<paragraph_builder> see(std::wstring item) override
        {
                out_ << L"[[#" << item << L"|" << item << L"]]";
@@ -145,7 +154,7 @@ public:
                out_ << std::endl;
        }
 private:
-       void begin_item(const std::wstring& name) override 
+       void begin_item(const std::wstring& name) override
        {
                out_ << L"==" << name << L"==\n" << std::endl;
        }
@@ -224,13 +233,15 @@ int main(int argc, char** argv)
 
        core::module_dependencies dependencies(system_info_provider_repo, cg_registry, media_info_repo, producer_registry, consumer_registry);
        initialize_modules(dependencies);
-       core::text::init(dependencies);
+       core::init_cg_proxy_as_producer(dependencies);
+       core::scene::init(dependencies);
+       core::syncto::init(dependencies);
 
        generate_amcp_commands_help(*help_repo);
        generate_producers_help(*help_repo);
        generate_consumers_help(*help_repo);
 
        uninitialize_modules();
-       
+
        return 0;
 }