0.6.0
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
jinja_context.h File Reference
#include "common/model/diagram.h"
#include "common/model/diagram_element.h"
#include "common/model/element.h"
#include "common/model/element_view.h"
#include "util/error.h"
#include <inja/inja.hpp>
#include <string>

Go to the source code of this file.

Classes

class  clanguml::common::jinja::jinja_context< T, Tag >
 Jinja diagram element context wrapper. More...
 

Namespaces

namespace  clanguml
 
namespace  clanguml::common
 
namespace  clanguml::common::jinja
 

Typedefs

template<typename T >
using clanguml::common::jinja::element_context = jinja_context< T, element_context_tag >
 
template<typename T >
using clanguml::common::jinja::diagram_context = jinja_context< T, diagram_context_tag >
 

Functions

void clanguml::common::jinja::to_json (inja::json &ctx, const element_context< common::model::decorated_element > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const element_context< common::model::diagram_element > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const element_context< common::model::element > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const element_context< common::model::relationship > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const element_context< common::model::source_file > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const element_context< common::model::source_location > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const diagram_context< common::model::decorated_element > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const diagram_context< common::model::diagram_element > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const diagram_context< common::model::element > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const diagram_context< common::model::source_file > &jc)
 
void clanguml::common::jinja::to_json (inja::json &ctx, const diagram_context< common::model::source_location > &jc)
 
std::optional< std::string > clanguml::common::jinja::render_template (inja::Environment &env, const inja::json &context, const std::string &jinja_template)
 
std::optional< std::string > clanguml::common::jinja::render_template (inja::Environment &env, const std::string &jinja_template)