PhoenixGenerator  2.6.4
Set of tools to generate code
Loading...
Searching...
No Matches
NanobindTraitTestSetup.cpp
Go to the documentation of this file.
1/***************************************
2 Auteur : Thibaut Oprinsen
3 Mail : thibaut.oprinsen@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
8
13
16
18void NanobindTraitTestSetup::headerTestInclude(std::ofstream & fs, const GeneratorMode & mode, const PString & baseFileName) const{
19 PString fileModule = baseFileName.toLower();
20 fs << "#!/usr/bin/env python3" << std::endl;
21 fs << "\"\"\"Test script for " << fileModule << " nanobind wrapper\"\"\"" << std::endl << std::endl;
22 fs << "import " << fileModule << std::endl;
23 fs << std::endl;
24}
virtual void headerTestInclude(std::ofstream &fs, const GeneratorMode &mode, const PString &baseFileName) const
Registration of static method.
NanobindTraitTestSetup()
Constructor of NanobindTraitTestSetup.
virtual ~NanobindTraitTestSetup()
Destructor of NanobindTraitTestSetup.
All the genertor modes.