DataModelLogger.zapt 944 B

123456789101112131415161718192021222324252627282930
  1. {{> header}}
  2. #include <lib/core/CHIPError.h>
  3. #include <app-common/zap-generated/cluster-objects.h>
  4. {{#zcl_structs}}
  5. {{#if has_more_than_one_cluster}}
  6. {{> struct_logger_decl namespace="detail"}}
  7. {{/if}}
  8. {{/zcl_structs}}
  9. {{#zcl_clusters}}
  10. {{#zcl_structs}}
  11. {{#unless has_more_than_one_cluster}}
  12. {{> struct_logger_decl namespace=(as_camel_cased ../name false)}}
  13. {{/unless}}
  14. {{/zcl_structs}}
  15. {{/zcl_clusters}}
  16. {{#zcl_clusters}}
  17. {{#zcl_events}}
  18. static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::{{asUpperCamelCase parent.name}}::Events::{{asUpperCamelCase name}}::DecodableType & value);
  19. {{/zcl_events}}
  20. {{/zcl_clusters}}
  21. {{#zcl_clusters}}
  22. {{#zcl_commands_source_server}}
  23. static CHIP_ERROR LogValue(const char * label, size_t indent, const chip::app::Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase name}}::DecodableType & value);
  24. {{/zcl_commands_source_server}}
  25. {{/zcl_clusters}}