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

Go to the source code of this file.

Typedefs

typedef std::map< PString, PBiblioEntryPMapBiblioEntry
 Describes the map for all PBiblioEntry. More...
 
typedef std::map< PString, PStringPMapStrEntry
 Describes one bibliograpy entry in string. More...
 

Functions

bool pbliblio_file (PMapBiblioEntry &mapBiblioEntry, const PPath &fileName)
 Parse the full bibliography file. More...
 

Typedef Documentation

◆ PMapBiblioEntry

typedef std::map<PString, PBiblioEntry> PMapBiblioEntry

Describes the map for all PBiblioEntry.

Definition at line 17 of file pbiblio_parser.h.

◆ PMapStrEntry

typedef std::map<PString, PString> PMapStrEntry

Describes one bibliograpy entry in string.

Definition at line 15 of file pbiblio_parser.h.

Function Documentation

◆ pbliblio_file()

bool pbliblio_file ( PMapBiblioEntry mapBiblioEntry,
const PPath fileName 
)

Parse the full bibliography file.

Parameters
[out]mapBiblioEntry: map of all the bibliography entries
fileName: name ofthe file to be parsed
Returns
true on success, false otherwise

Definition at line 139 of file pbiblio_parser.cpp.

139  {
140  PFileParser parser;
141  if(!parser.open(fileName)){
142  std::cerr << "pbliblio_file : can't open file '" << fileName << "'" << std::endl;
143  return false;
144  }
145  parser.setSeparator("()[]{}+=*.;,/%#':<>\"");
146 
147  return pbliblio_parser(parser, mapBiblioEntry);
148 }
classe qui permet de parser des fichiers texte en renvoyant les tokens les uns après les autres
Definition: PFileParser.h:20
void setSeparator(const PString &separator)
Initialise la liste des caractères séparateurs.
Definition: PFileParser.cpp:43
bool open(const PPath &fileName)
Fonction qui ouvre le fichier que l'on va parser.
Definition: PFileParser.cpp:24
bool pbliblio_parser(PFileParser &parser, PMapBiblioEntry &mapBiblioEntry)
Parse the full bibliography file.

References PFileParser::open(), pbliblio_parser(), and PFileParser::setSeparator().

Referenced by processAllFile().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: