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

Go to the source code of this file.

Functions

void updateWip (PLatexObj &obj)
 Update the Part/Chapter/Section/etc if they contains a work in progress. More...
 

Function Documentation

◆ updateWip()

void updateWip ( PLatexObj obj)

Update the Part/Chapter/Section/etc if they contains a work in progress.

Parameters
[out]obj: PLatexObj to be updated

Definition at line 59 of file update_wip.cpp.

59  {
60  PVecLatexObj & vecObj = obj.getVecContent();
61  for(PVecLatexObj::iterator it(vecObj.begin()); it != vecObj.end(); ++it){
62  if(isSection(*it)){
63  updateSectionWip(*it);
64  }
65  }
66 }
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
Definition: PLatexObj.cpp:410
bool isSection(const PLatexObj &obj)
Say if the PLatexObj is a part, charpter, section, subsection or subsubsection.
std::vector< PLatexObj > PVecLatexObj
Vector of obj.
bool updateSectionWip(PLatexObj &obj)
Update the wip of a obj and say if there was a WIP inside or not.
Definition: update_wip.cpp:30

References PLatexObj::getVecContent(), isSection(), and updateSectionWip().

Referenced by processAllFile().

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