PhoenixGenerator  3.4.0
Generate code from template files and projects in C++, Rust, Python and wrapped C++ to Python
Loading...
Searching...
No Matches
RustTraitCheckStream.cpp
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : LGPL-3.0-only
5****************************************/
6
8
11
14void RustTraitCheckStream::headerExtraInclude(std::ofstream & fs, const GeneratorMode & mode) const{
15 if(!mode.enableCheckStream){
16 return;
17 }
18 fs << "use rustyphoenixcheckstreamderive::PhoenixCheckStream;";
19 fs << std::endl;
20 fs << "use rustyphoenixcheckstream::{PCheckStream, phoenix_check_stream}";
21 fs << std::endl;
22}
virtual void headerExtraInclude(std::ofstream &fs, const GeneratorMode &mode) const
Rust trait generating getters and setters for every attribute Add extra include on the header.
All the genertor modes.
bool enableCheckStream
True to enable check stream interface generator.