PhoenixLecture  2.0.0
Set of tools to make lectures
update_firstCss.cpp
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 
8 #include "update_firstCss.h"
9 
10 
12 
15 void update_firstCss(PString & firstCss, const PLatexObj & source){
16  const PVecLatexObj & vecObj = source.getVecContent();
17  if(vecObj.size() == 0lu){return;}
18  const PLatexObj & firstObj = vecObj.front();
19  if(firstObj.getType() == PLatexType::UPDATESTYLE){
20  firstCss = firstObj.getName();
21  }
22 }
23 
Describe a latex object.
Definition: PLatexObj.h:40
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
Definition: PLatexObj.cpp:410
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
Definition: PLatexObj.cpp:298
const PString & getName() const
Gets the name of the PLatexObj.
Definition: PLatexObj.cpp:326
Extends the std::string.
Definition: PString.h:16
std::vector< PLatexObj > PVecLatexObj
Vector of obj.
void update_firstCss(PString &firstCss, const PLatexObj &source)
Update the firstCss style to be used.