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

Go to the source code of this file.

Functions

void pspeaker_tex (std::vector< PLatexObj > &vecContent, const PTimeTable &timetable)
 Save all speakers of the given PTimeTable into a vector of PLatexObj. More...
 
void pspeaker_tex (std::vector< PLatexObj > &vecContent, const std::vector< PLatexSpeaker > &vecSpeaker, const PString &sectionLabel)
 Save all speakers of the given PTimeTable into a vector of PLatexObj. More...
 

Function Documentation

◆ pspeaker_tex() [1/2]

void pspeaker_tex ( std::vector< PLatexObj > &  vecContent,
const PTimeTable timetable 
)

Save all speakers of the given PTimeTable into a vector of PLatexObj.

Parameters
[out]vecContent: vector of PLatexObj to be completed
timetable: PTimeTable to be used

Definition at line 66 of file pspeaker_tex.cpp.

66  {
67  const std::vector<PLatexSpeaker> & vecSpeaker = timetable.getVecSpeaker();
68  pspeaker_tex(vecContent, vecSpeaker, "sec_speaker_"+timetable.getInvitation());
69 }
const PString & getInvitation() const
Gets the invitation of the PTimeTable.
Definition: PTimeTable.cpp:859
const std::vector< PLatexSpeaker > & getVecSpeaker() const
Gets the vecSpeaker of the PTimeTable.
Definition: PTimeTable.cpp:943
void pspeaker_tex(std::vector< PLatexObj > &vecContent, const std::vector< PLatexSpeaker > &vecSpeaker, const PString &sectionLabel)
Save all speakers of the given PTimeTable into a vector of PLatexObj.

References PTimeTable::getInvitation(), PTimeTable::getVecSpeaker(), and pspeaker_tex().

+ Here is the call graph for this function:

◆ pspeaker_tex() [2/2]

void pspeaker_tex ( std::vector< PLatexObj > &  vecContent,
const std::vector< PLatexSpeaker > &  vecSpeaker,
const PString sectionLabel 
)

Save all speakers of the given PTimeTable into a vector of PLatexObj.

Parameters
[out]vecContent: vector of PLatexObj to be completed
vecSpeaker: vector of PLatexSpeaker to be saved
sectionLabel: label of the created Chapter section

Definition at line 53 of file pspeaker_tex.cpp.

53  {
54  if(vecSpeaker.size() == 0lu){return;} //If there is not speakers we do not create chapter for that
55  vecContent.push_back(platexobj_createSection(PLatexType::CHAPTER, platexobj_parseStr("Speakers"), sectionLabel));
56  vecContent.push_back(platexobj_createText("Here you can find all speakers of the timetable.", ""));
57  for(std::vector<PLatexSpeaker>::const_iterator it(vecSpeaker.begin()); it != vecSpeaker.end(); ++it){
58  pspeaker_texSpeaker(vecContent, *it);
59  }
60 }
PLatexObj platexobj_createText(const PString &text, const PString &label)
Create a TEXT.
PLatexObj platexobj_createSection(PLatexType::PLatexType sectionType, const PLatexObj &complexTitle, const PString &label)
Create a part, chapter, section, subsection, subsubsection.
bool platexobj_parseStr(PLatexObj &obj, const PString &latexStr)
Parse a str and convert it into a PLatexObj.
void pspeaker_texSpeaker(std::vector< PLatexObj > &vecContent, const PLatexSpeaker &speaker)
Save all speakers of the given PLatexSpeaker into a vector of PLatexObj.

References PLatexType::CHAPTER, platexobj_createSection(), platexobj_createText(), platexobj_parseStr(), and pspeaker_texSpeaker().

Referenced by PConfigParser::parseSaveSpeaker(), pspeaker_tex(), and ptimetable_tex().

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