Sygaldry
Loading...
Searching...
No Matches
sygup-debug_printer.hpp
1#pragma once
2/*
3Copyright 2023 Travis J. West, https://traviswest.ca, Input Devices and Music
4Interaction Laboratory (IDMIL), Centre for Interdisciplinary Research in Music
5Media and Technology (CIRMMT), McGill University, Montréal, Canada, and Univ.
6Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France
7
8SPDX-License-Identifier: MIT
9*/
10
11#include "sygah-metadata.hpp"
12
13namespace sygaldry { namespace sygup {
18
19template<typename Logger, string_literal message>
21: name_<"Debug Printer">
22, description_<"prints the runtime stage it is currently running">
23, author_<"Travis J. West">
24, copyright_<"Copyright 2023 Sygaldry Contributors">
25, license_<"SPDX-License-Identifier: MIT">
26, version_<"0.0.0">
27{
28 [[no_unique_address]] Logger log;
29 void init() { log.println(message.value, " init"); }
30 void external_sources() { log.println(message.value, " external_sources"); }
31 void main() { log.println(message.value, " main"); }
32 void external_destinations() { log.println(message.value, " external_destinations"); }
33};
34
37} }
Document the author of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:39
Document the copyright statement of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:47
Document a textual description of an entity, e.g. an endpoint, component or binding.
Definition sygah-metadata.hpp:35
Document the copyright license of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:45
Document the name of an entity, e.g. an endpoint, component, or binding.
Definition sygah-metadata.hpp:33
Definition sygup-debug_printer.hpp:27
Document a textual description of the version number of an entity, e.g. a component or binding.
Definition sygah-metadata.hpp:51