26 for(PVecLatexObj::const_iterator it(vecObj.begin()); it != vecObj.end(); ++it){
37 PMapLabel::const_iterator it(mapLabel.find(obj.
getName()));
38 if(it != mapLabel.end()){
39 const PString & link = it->second.first;
43 std::cerr <<
"useMapLabel : reference to '"<<obj.
getName()<<
"' not found" << std::endl;
58 for(std::vector<PLatexObj>::iterator it(vecObj.begin()); it != vecObj.end(); ++it){
71 PPath redirectFileName(
"redirect.html");
73 std::cerr <<
"updateLabelRef : cannot save the file '"<<redirectFileName<<
"'" << std::endl;
void setLink(const PString &link)
Sets the link of the PLatexObj.
const std::vector< PLatexObj > & getVecContent() const
Gets the vecContent of the PLatexObj.
const std::vector< PLatexObj > & getComplexTitle() const
Gets the complexTitle of the PLatexObj.
const PString & getLabelName() const
Gets the labelName of the PLatexObj.
const PLatexType::PLatexType & getType() const
Gets the type of the PLatexObj.
const PString & getName() const
Gets the name of the PLatexObj.
void setName(const PString &name)
Sets the name of the PLatexObj.
const PString & getLink() const
Gets the link of the PLatexObj.
const std::vector< long unsigned int > & getVecSecNumber() const
Gets the vecSecNumber of the PLatexObj.
Path of a directory or a file.
PString vecNumberToString(const std::vector< long unsigned int > &vecNb)
Convert a vector of numbers into a string.
std::vector< PLatexObj > PVecLatexObj
Vector of obj.
bool redirect_html(const PPath &fileName, const PMapLabel &mapLabel)
Create the redirection page to get page with label name as reference.
void updateMapLabel(PMapLabel &mapLabel, const PLatexObj &obj)
Update the map of label.
void updateLabelRef(PLatexObj &obj)
Update the label of the references.
void useMapLabel(PLatexObj &obj, const PMapLabel &mapLabel)
Update the map of label.
std::map< PString, std::pair< PString, PString > > PMapLabel
Map of the label (name, link)