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
7
#include "
NanobindTraitTestSetup.h
"
8
10
NanobindTraitTestSetup::NanobindTraitTestSetup
()
11
:
PAbstractNanobindTraitBackend
()
12
{}
13
15
NanobindTraitTestSetup::~NanobindTraitTestSetup
(){}
16
18
void
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
}
NanobindTraitTestSetup.h
NanobindTraitTestSetup::headerTestInclude
virtual void headerTestInclude(std::ofstream &fs, const GeneratorMode &mode, const PString &baseFileName) const
Registration of static method.
Definition
NanobindTraitTestSetup.cpp:18
NanobindTraitTestSetup::NanobindTraitTestSetup
NanobindTraitTestSetup()
Constructor of NanobindTraitTestSetup.
Definition
NanobindTraitTestSetup.cpp:10
NanobindTraitTestSetup::~NanobindTraitTestSetup
virtual ~NanobindTraitTestSetup()
Destructor of NanobindTraitTestSetup.
Definition
NanobindTraitTestSetup.cpp:15
PAbstractNanobindTraitBackend::PAbstractNanobindTraitBackend
PAbstractNanobindTraitBackend()
Definition
PAbstractTraitBackend.h:67
GeneratorMode
All the genertor modes.
Definition
GeneratorMode.h:25
src
TraitBackEnd
Nanobind
NanobindTraitTestSetup
NanobindTraitTestSetup.cpp
Generated by
1.13.2