PhoenixLecture  2.0.0
Set of tools to make lectures
pbiblio_html.h File Reference
#include "platexobj_utils.h"
#include "pbiblio_parser.h"
+ Include dependency graph for pbiblio_html.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool pbiblio_html (const PPath &fileName, const PMapBiblioEntry &mapBiblioEntry, const POutoutMode &outputMode)
 Save the bibliography in html. More...
 

Function Documentation

◆ pbiblio_html()

bool pbiblio_html ( const PPath fileName,
const PMapBiblioEntry mapBiblioEntry,
const POutoutMode outputMode 
)

Save the bibliography in html.

Parameters
fileName: name of the file to be saved
mapBiblioEntry: full bibliography to be saved
outputMode: output mode to get info about html page
Returns
true on success, false otherwise

Definition at line 171 of file pbiblio_html.cpp.

171  {
172  PString fileContent(pbiblio_html(mapBiblioEntry, outputMode));
173  if(!fileName.saveFileContent(fileContent)){
174  std::cerr << "platexobj_html : can't save file '"<<fileName<<"'" << std::endl;
175  return false;
176  }else{
177  std::cerr << "platexobj_html : save file '"<<fileName<<"'" << std::endl;
178  }
179  return true;
180 
181 
182 }
bool saveFileContent(const PString &content) const
Save a PString in a file.
Definition: PPath.cpp:395
Extends the std::string.
Definition: PString.h:16
PString pbiblio_html(const PMapBiblioEntry &mapBiblioEntry, const POutoutMode &outputMode)
Save the bibliography in string.

References pbiblio_html(), and PPath::saveFileContent().

+ Here is the call graph for this function: