PhoenixGenerator  2.0.0
Set of tools to generate code
saveClassConfigTest.h File Reference
#include "PClassConfig.h"
+ Include dependency graph for saveClassConfigTest.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool saveClassTest (const PPath &outputTestDir, const PString &libName, const std::vector< PClassConfig > &classConfig, const PPath &baseFileName, bool enableDataStream=false, bool enableTypeStream=false)
 Save the unit test of the generated PClassConfig. More...
 

Function Documentation

◆ saveClassTest()

bool saveClassTest ( const PPath outputTestDir,
const PString libName,
const std::vector< PClassConfig > &  classConfig,
const PPath baseFileName,
bool  enableDataStream,
bool  enableTypeStream 
)

Save the unit test of the generated PClassConfig.

Parameters
outputTestDir: output directory where to put the genreated test (typically ../TESTS if the program is called from ./src)
libName: name of the generated library to link with
classConfig: class configuration to be used
baseFileName: base of output file name of the generated sources
enableDataStream: true to enable the data stream test
enableTypeStream: true to test phoenix_getTypeName function
Returns
true on success, false oterhwise

Definition at line 207 of file saveClassConfigTest.cpp.

207  {
208  bool b(true);
209  for(std::vector<PClassConfig>::const_iterator it(classConfig.begin()); it != classConfig.end(); ++it){
210  b &= saveClassTest(outputTestDir, libName, *it, baseFileName, enableDataStream, enableTypeStream);
211  }
212  return b;
213 }
bool saveClassTest(const PPath &outputTestDir, const PString &libName, const PClassConfig &classConfig, const PPath &baseFileName, bool enableDataStream, bool enableTypeStream)
Save the unit test of the generated PClassConfig.

References saveClassTest().

+ Here is the call graph for this function: