esphome-api-client 0.5.0
Modern C++17 client for the ESPHome native API (plaintext + Noise)
Loading...
Searching...
No Matches
Namespaces | Functions
emit.hpp File Reference

protogen code emitters. More...

#include "model.hpp"
#include <string>
Include dependency graph for emit.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  protogen
 

Functions

std::string protogen::cpp_ident (const std::string &name)
 
std::string protogen::cpp_element_type (const ProtoField &f)
 
void protogen::emit_enums (const ProtoFile &file, const std::string &out_dir)
 
void protogen::emit_messages (const ProtoFile &file, const std::string &include_dir, const std::string &src_dir)
 
void protogen::emit_registry (const ProtoFile &file, const std::string &include_dir, const std::string &src_dir)
 

Detailed Description

protogen code emitters.

Each writes one or more generated files (enums, message classes, the id<->type registry, message_id.hpp) from the parsed model.