CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
L1GtVhdlTemplateFile Class Reference

#include <L1GtVhdlTemplateFile.h>

Public Member Functions

void append (const std::string &str)
 adds a line at the end of the the file with the content of str More...
 
void append (const L1GtVhdlTemplateFile &file)
 adds the content of file at the end of (*this); the parameter map won't be changed More...
 
bool close ()
 
bool extractParametersFromString (const std::string &str, std::vector< std::string > &parameters) const
 
void getConditionsFromAlgo (std::string condString, std::vector< std::string > &result) const
 extracts all conditions from a algorithm More...
 
std::string getInternalParameter (const std::string &indentifier)
 returns a parameter of a internal template file More...
 
std::vector< std::string > getSubstitutionParametersFromTemplate () const
 returns a vector with all substitution parameters that are found in the template file More...
 
bool insert (const std::string &atLine, const std::vector< std::string > &content)
 replaces the whole line containing atLine and inserts content instead of it More...
 
bool insert (const std::string atLine, const L1GtVhdlTemplateFile &file)
 replaces the whole line containing atLine with the content of file More...
 
bool isBlank (const char &chr) const
 checks weather a char is a blank More...
 
 L1GtVhdlTemplateFile ()
 standard constructor More...
 
 L1GtVhdlTemplateFile (const std::string &filename)
 constructor with filename More...
 
std::string lines2String () const
 returns a string with the content of vector lines More...
 
bool open (const std::string &fileName, bool internal=false)
 opens a template file. If the header information shall be parsed intern has to be set to true More...
 
void print () const
 prints the content of the VHDL File (only lines_) More...
 
void printParameterMap () const
 prints the parameter map More...
 
bool removeEmptyLines ()
 deletes all empty lines in a template file More...
 
bool removeLineWithContent (const std::string &str)
 removes all lines that contain the str More...
 
std::vector< std::string > returnLines () const
 returns a string vector with the current content of the VHDL File More...
 
std::map< std::string, std::string > returnParameterMap () const
 returns parameter map More...
 
bool save (const std::string &fileName)
 saves the content of the template file to a local file (the content of parameterMap_ will not be saved!) More...
 
bool split (const std::string &param, std::vector< std::string > &result) const
 seperates a string at all blanks and saves the elements in result More...
 
bool substitute (const std::string &searchString, const std::string &replaceString)
 replaces searchString with replaceString More...
 

Static Public Member Functions

static const bool findAndReplaceString (std::string &paramString, const std::string &searchString, const std::string &replaceString)
 replaces searchString with replaceString at it's first occurance in string More...
 

Private Attributes

bool intern_
 
std::vector< std::string > lines_
 containing the content of the VHDL file More...
 
std::map< std::string, std::string > parameterMap_
 containing the header information of internal files More...
 

Detailed Description

The routines of this class provide all necessary features to deal with the VHDL templates for the firmware code of the GT

Implementation: <TODO: enter implementation details>

Author
Philipp Wagner

Description: a class to deal with VHDL template files

Implementation: <TODO: enter implementation details>

Author
: Philipp Wagner

Definition at line 25 of file L1GtVhdlTemplateFile.h.

Constructor & Destructor Documentation

◆ L1GtVhdlTemplateFile() [1/2]

L1GtVhdlTemplateFile::L1GtVhdlTemplateFile ( )

standard constructor

Definition at line 29 of file L1GtVhdlTemplateFile.cc.

References intern_.

29 { intern_ = false; }

◆ L1GtVhdlTemplateFile() [2/2]

L1GtVhdlTemplateFile::L1GtVhdlTemplateFile ( const std::string &  filename)

constructor with filename

Definition at line 32 of file L1GtVhdlTemplateFile.cc.

References gather_cfg::cout, corrVsCorr::filename, and open().

32  {
33  if (!open(filename, false))
34  std::cout << "Error while opening file: " << filename << std::endl;
35 }
bool open(const std::string &fileName, bool internal=false)
opens a template file. If the header information shall be parsed intern has to be set to true ...

Member Function Documentation

◆ append() [1/2]

void L1GtVhdlTemplateFile::append ( const std::string &  str)

adds a line at the end of the the file with the content of str

Definition at line 267 of file L1GtVhdlTemplateFile.cc.

References lines_, and str.

Referenced by diclist.diclist::add(), L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), and L1GtVhdlWriterCore::writeMuonSetupVhdl().

267 { lines_.push_back(str); }
std::vector< std::string > lines_
containing the content of the VHDL file
#define str(s)

◆ append() [2/2]

void L1GtVhdlTemplateFile::append ( const L1GtVhdlTemplateFile file)

adds the content of file at the end of (*this); the parameter map won't be changed

Definition at line 269 of file L1GtVhdlTemplateFile.cc.

References geometryDiff::file, mps_fire::i, and lines_.

Referenced by diclist.diclist::add().

269  {
270  for (unsigned int i = 0; i < file.lines_.size(); i++) {
271  lines_.push_back(file.lines_.at(i));
272  }
273 }
std::vector< std::string > lines_
containing the content of the VHDL file

◆ close()

bool L1GtVhdlTemplateFile::close ( void  )

Definition at line 197 of file L1GtVhdlTemplateFile.cc.

Referenced by esMonitoring.AsyncLineReaderMixin::handle_close(), and esMonitoring.FDJsonServer::handle_close().

197  {
198  //empty
199  return true;
200 }

◆ extractParametersFromString()

bool L1GtVhdlTemplateFile::extractParametersFromString ( const std::string &  str,
std::vector< std::string > &  parameters 
) const

finds all substitution parameters in str and collects them in the vector parameters. This routine is used by getSubstitutionParametersFromTemplate();

Definition at line 226 of file L1GtVhdlTemplateFile.cc.

References str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by getSubstitutionParametersFromTemplate().

227  {
228  // check, weather the current line is containing a substitution parameter
229  // the routine is making sure, that it's not extracting a parameter from
230  // a comment
231  if (int pos1 = str.find("$(") != std::string::npos && str.substr(0, 2) != "--") {
232  int pos2 = str.find(')');
233  // get the substituion parameter
234  std::string tempStr = (str.substr(pos1 + 1, (pos2 - pos1 - 1)));
235  // return a pair with the substitution parameter and the
236  // the rest of the string after the substitution parameter
237 
238  // here a should be checked, weather the vector is already containing
239  // the parameter befor adding it.
240 
241  parameters.push_back(tempStr);
242  //recursive call
243  while (extractParametersFromString(str.substr(pos2), parameters))
245 
246  return true;
247  } else {
248  return false;
249  }
250 
251  return true;
252 }
bool extractParametersFromString(const std::string &str, std::vector< std::string > &parameters) const
#define str(s)

◆ findAndReplaceString()

const bool L1GtVhdlTemplateFile::findAndReplaceString ( std::string &  paramString,
const std::string &  searchString,
const std::string &  replaceString 
)
static

replaces searchString with replaceString at it's first occurance in string

Definition at line 37 of file L1GtVhdlTemplateFile.cc.

References position, and edm::replaceString().

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer(), L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), getConditionsFromAlgo(), L1GtVhdlWriterCore::getSubstParamCommonFromTriggerMenu(), substitute(), L1GtVhdlWriterCore::writeAlgoSetup(), L1GtVhdlWriterCore::writeCondChipPkg(), L1GtVhdlWriterCore::writeConditionChipSetup(), L1GtVhdlWriterCore::writeDefValPkg(), L1GtVhdlWriterCore::writeEtmSetup(), L1GtVhdlWriterCore::writeMuonSetupVhdl(), and L1GtVhdlWriterCore::writeQsfSetupFiles().

39  {
40  size_t position;
41  position = paramString.find(searchString);
42  if (position == std::string::npos)
43  return false;
44  paramString.replace(position, searchString.length(), replaceString);
45  return true;
46 }
void replaceString(std::string &demangledName, std::string const &from, std::string const &to)
static int position[264][3]
Definition: ReadPGInfo.cc:289

◆ getConditionsFromAlgo()

void L1GtVhdlTemplateFile::getConditionsFromAlgo ( std::string  condString,
std::vector< std::string > &  result 
) const

extracts all conditions from a algorithm

Definition at line 335 of file L1GtVhdlTemplateFile.cc.

References findAndReplaceString(), mps_fire::i, mps_fire::result, and split().

335  {
336  std::vector<std::string> operators;
337 
338  operators.push_back("AND");
339  operators.push_back("OR");
340  operators.push_back("NOT");
341  operators.push_back("(");
342  operators.push_back(")");
343 
344  for (unsigned int i = 0; i < operators.size(); i++) {
345  while (findAndReplaceString(condString, operators.at(i), ""))
346  findAndReplaceString(condString, operators.at(i), "");
347  }
348 
349  split(condString, result);
350 }
static const bool findAndReplaceString(std::string &paramString, const std::string &searchString, const std::string &replaceString)
replaces searchString with replaceString at it&#39;s first occurance in string
bool split(const std::string &param, std::vector< std::string > &result) const
seperates a string at all blanks and saves the elements in result

◆ getInternalParameter()

std::string L1GtVhdlTemplateFile::getInternalParameter ( const std::string &  indentifier)

returns a parameter of a internal template file

Definition at line 364 of file L1GtVhdlTemplateFile.cc.

References parameterMap_.

Referenced by L1GtVhdlWriterCore::buildDefValuesBuffer(), and L1GtVhdlWriterCore::writeDefValPkg().

364  {
365  return parameterMap_[indentifier];
366 }
std::map< std::string, std::string > parameterMap_
containing the header information of internal files

◆ getSubstitutionParametersFromTemplate()

std::vector< std::string > L1GtVhdlTemplateFile::getSubstitutionParametersFromTemplate ( ) const

returns a vector with all substitution parameters that are found in the template file

Definition at line 254 of file L1GtVhdlTemplateFile.cc.

References extractParametersFromString(), lines_, and groupFilesInBlocks::temp.

Referenced by L1GtVhdlWriterCore::writeMuonSetupVhdl().

254  {
255  std::vector<std::string> temp;
256  std::vector<std::string>::const_iterator iter = lines_.begin();
257 
258  // loop until the substitution parameter is discovered the first time
259  while (iter != lines_.end()) {
261  iter++;
262  }
263 
264  return temp;
265 }
std::vector< std::string > lines_
containing the content of the VHDL file
bool extractParametersFromString(const std::string &str, std::vector< std::string > &parameters) const

◆ insert() [1/2]

bool L1GtVhdlTemplateFile::insert ( const std::string &  atLine,
const std::vector< std::string > &  content 
)

replaces the whole line containing atLine and inserts content instead of it

Definition at line 165 of file L1GtVhdlTemplateFile.cc.

References submitPVResolutionJobs::content, lines_, and summarizeEdmComparisonLogfiles::success.

Referenced by L1GtVhdlWriterCore::buildCommonHeader(), insert(), L1GtVhdlWriterCore::openVhdlFileWithCommonHeader(), L1GtVhdlWriterCore::writeCondChipPkg(), L1GtVhdlWriterCore::writeConditionChipSetup(), L1GtVhdlWriterCore::writeDefValPkg(), and L1GtVhdlWriterCore::writeMuonSetupVhdl().

165  {
166  bool success = false;
167  std::vector<std::string>::iterator iter = lines_.begin();
168 
169  //Loop until the substitution parameter is discovered the first time
170  while (iter != lines_.end()) {
171  //check, weather the current line is containing the substitution parameter
172  if ((*iter).find(atLine) != std::string::npos) {
173  //Delete the line with the subsitution parameter
174  iter = lines_.erase(iter);
175  //insert the content of file
176  lines_.insert(iter, content.begin(), content.end());
177 
178  success = true;
179  break;
180  }
181 
182  iter++;
183  }
184 
185  return success;
186 }
std::vector< std::string > lines_
containing the content of the VHDL file

◆ insert() [2/2]

bool L1GtVhdlTemplateFile::insert ( const std::string  atLine,
const L1GtVhdlTemplateFile file 
)

replaces the whole line containing atLine with the content of file

Definition at line 188 of file L1GtVhdlTemplateFile.cc.

References findAndChange::_file, insert(), and groupFilesInBlocks::temp.

188  {
189  std::vector<std::string> temp = _file.returnLines();
190 
191  if (insert(atLine, temp))
192  return true;
193 
194  return false;
195 }
bool insert(const std::string &atLine, const std::vector< std::string > &content)
replaces the whole line containing atLine and inserts content instead of it

◆ isBlank()

bool L1GtVhdlTemplateFile::isBlank ( const char &  chr) const

checks weather a char is a blank

Definition at line 305 of file L1GtVhdlTemplateFile.cc.

Referenced by split().

305  {
306  if (chr == ' ')
307  return true;
308  return false;
309 }

◆ lines2String()

std::string L1GtVhdlTemplateFile::lines2String ( ) const

returns a string with the content of vector lines

Definition at line 352 of file L1GtVhdlTemplateFile.cc.

References edmScanValgrind::buffer, and lines_.

352  {
353  std::vector<std::string>::const_iterator iter = lines_.begin();
354  std::ostringstream buffer;
355 
356  while (iter != lines_.end()) {
357  buffer << (*iter) << std::endl;
358  iter++;
359  }
360 
361  return buffer.str();
362 }
std::vector< std::string > lines_
containing the content of the VHDL file

◆ open()

bool L1GtVhdlTemplateFile::open ( const std::string &  fileName,
bool  internal = false 
)

opens a template file. If the header information shall be parsed intern has to be set to true

Definition at line 48 of file L1GtVhdlTemplateFile.cc.

References edmScanValgrind::buffer, MillePedeFileConverter_cfg::fileName, recoMuon::in, makeListRunsInFiles::inputFile, lines_, parameterMap_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by L1GtVhdlWriterCore::buildCommonHeader(), L1GtVhdlWriterCore::buildDefValuesBuffer(), L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), L1GtVhdlTemplateFile(), L1GtVhdlWriterCore::writeDefValPkg(), L1GtVhdlWriterCore::writeMuonSetupVhdl(), and L1GtVhdlWriterCore::writeQsfSetupFiles().

48  {
49  const char paramIndicator = '#';
50  const char commentIndicator = '%';
51  char buffer[2000];
52  std::string stringBuffer;
53 
54  std::fstream inputFile(fileName.c_str(), std::ios::in);
55  //check weather file has been opened successfully
56  if (!inputFile.is_open())
57  return false;
58 
59  //store content of the template in Vector lines
60  while (!inputFile.eof()) {
61  inputFile.getline(buffer, 2000);
62  stringBuffer = buffer;
63  //Remove DOS seperators (For example if the template file was created under NT)
64  if (stringBuffer[stringBuffer.length() - 1] == 13) {
65  stringBuffer.replace(stringBuffer.length() - 1, 1, "");
66  }
67  //the current buffer + a seperator to the vector lines
68  lines_.push_back(stringBuffer /*+"\n"*/);
69  }
70 
71  inputFile.close();
72 
73  if (internal) {
74  //Delete lines containing parameters after moving them to parameterMap_
75  std::vector<std::string>::iterator iter = lines_.begin();
76  while (iter != lines_.end()) {
77  while ((*iter)[0] == commentIndicator && (*iter)[1] == commentIndicator)
78  lines_.erase(iter);
79 
80  if ((*iter)[0] == paramIndicator) {
81  std::vector<std::string>::iterator iter2 = iter;
82 
83  // get the first line of content
84  iter2++;
85 
86  while (iter2 != lines_.end()) {
87  if ((*iter2)[0] == paramIndicator && (*iter2)[1] == paramIndicator) {
88  iter2++;
89  break;
90  }
91 
92  parameterMap_[(*iter).substr(1)] += (*iter2);
93 
94  // overtake the newlines
95  std::vector<std::string>::iterator tmpIter = iter2;
96  tmpIter++;
97 
98  // check weather the next line is the end of the block
99  if (!((*tmpIter)[0] == paramIndicator && (*tmpIter)[1] == paramIndicator))
100  parameterMap_[(*iter).substr(1)] += "\n";
101 
102  iter2++;
103  }
104 
105  // there has been a syntax error in the internal template
106  // stop the routine
107  if (iter2 == lines_.end())
108  return false;
109 
110  // deletes the content, thas has been added to parameter map before
111  // (iter one at the moment is at the beginnig of the block, iter2 at its end)
112  lines_.erase(iter, iter2);
113  }
114 
115  // just for security
116  if (iter != lines_.end())
117  iter++;
118  }
119 
120  //remove empty lines
121  iter = lines_.begin();
122  while (iter != lines_.end()) {
123  if ((*iter).empty() || (*iter).length() == 0 || (*iter) == " ")
124  lines_.erase(iter);
125  else
126  iter++;
127  }
128  }
129 
130  return true;
131 }
std::map< std::string, std::string > parameterMap_
containing the header information of internal files
std::vector< std::string > lines_
containing the content of the VHDL file

◆ print()

void L1GtVhdlTemplateFile::print ( void  ) const

prints the content of the VHDL File (only lines_)

Definition at line 202 of file L1GtVhdlTemplateFile.cc.

References gather_cfg::cout, and lines_.

Referenced by L1GtVhdlWriterCore::printCommonHeader().

202  {
203  std::vector<std::string>::const_iterator iter = lines_.begin();
204  while (iter != lines_.end()) {
205  std::cout << *iter << std::endl;
206  iter++;
207  }
208 }
std::vector< std::string > lines_
containing the content of the VHDL file

◆ printParameterMap()

void L1GtVhdlTemplateFile::printParameterMap ( ) const

prints the parameter map

Definition at line 212 of file L1GtVhdlTemplateFile.cc.

References gather_cfg::cout, and parameterMap_.

212  {
213  std::cout << "Enter parametermap" << std::endl;
214 
215  std::map<std::string, std::string>::const_iterator iter = parameterMap_.begin();
216 
217  while (iter != parameterMap_.end()) {
218  std::cout << (*iter).first << ": " << (*iter).second << std::endl;
219  iter++;
220  ;
221  }
222 }
std::map< std::string, std::string > parameterMap_
containing the header information of internal files

◆ removeEmptyLines()

bool L1GtVhdlTemplateFile::removeEmptyLines ( )

deletes all empty lines in a template file

Definition at line 292 of file L1GtVhdlTemplateFile.cc.

References lines_.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu().

292  {
293  std::vector<std::string>::iterator iter = lines_.begin();
294 
295  while (iter != lines_.end()) {
296  if ((*iter).empty() || (*iter).length() == 0 || (*iter) == " ")
297  lines_.erase(iter);
298  else
299  iter++;
300  }
301 
302  return true;
303 }
std::vector< std::string > lines_
containing the content of the VHDL file

◆ removeLineWithContent()

bool L1GtVhdlTemplateFile::removeLineWithContent ( const std::string &  str)

removes all lines that contain the str

Definition at line 275 of file L1GtVhdlTemplateFile.cc.

References lines_, position, str, and summarizeEdmComparisonLogfiles::success.

Referenced by L1GtVhdlWriterCore::writeMuonSetupVhdl().

275  {
276  bool success = false;
277 
278  std::vector<std::string>::iterator iter = lines_.begin();
279  while (iter != lines_.end()) {
280  size_t position;
281  position = (*iter).find(str);
282 
283  if (position != std::string::npos) {
284  lines_.erase(iter);
285  success = true;
286  } else
287  iter++;
288  }
289  return success;
290 }
std::vector< std::string > lines_
containing the content of the VHDL file
static int position[264][3]
Definition: ReadPGInfo.cc:289
#define str(s)

◆ returnLines()

std::vector< std::string > L1GtVhdlTemplateFile::returnLines ( ) const

returns a string vector with the current content of the VHDL File

Definition at line 210 of file L1GtVhdlTemplateFile.cc.

References lines_.

210 { return lines_; }
std::vector< std::string > lines_
containing the content of the VHDL file

◆ returnParameterMap()

std::map< std::string, std::string > L1GtVhdlTemplateFile::returnParameterMap ( ) const

returns parameter map

Definition at line 224 of file L1GtVhdlTemplateFile.cc.

References parameterMap_.

Referenced by L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), L1GtVhdlWriterCore::getSubstParamCommonFromTriggerMenu(), and L1GtVhdlWriterCore::writeMuonSetupVhdl().

224 { return parameterMap_; }
std::map< std::string, std::string > parameterMap_
containing the header information of internal files

◆ save()

bool L1GtVhdlTemplateFile::save ( const std::string &  fileName)

saves the content of the template file to a local file (the content of parameterMap_ will not be saved!)

Definition at line 133 of file L1GtVhdlTemplateFile.cc.

References MillePedeFileConverter_cfg::fileName, lines_, and download_sqlite_cfg::outputFile.

Referenced by L1GtVhdlWriterCore::writeAlgoSetup(), L1GtVhdlWriterCore::writeCondChipPkg(), L1GtVhdlWriterCore::writeConditionChipSetup(), L1GtVhdlWriterCore::writeDefValPkg(), L1GtVhdlWriterCore::writeEtmSetup(), L1GtVhdlWriterCore::writeMuonSetupVhdl(), and L1GtVhdlWriterCore::writeQsfSetupFiles().

133  {
134  std::ofstream outputFile(fileName.c_str());
135  std::vector<std::string>::iterator iter = lines_.begin();
136 
137  //Write content of lines_ into the outputfile.
138  while (iter != lines_.end()) {
139  //std::cout<<"Last sign: "<<*iter[(*iter).length()-3];
140  outputFile << *iter << std::endl;
141  iter++;
142  }
143 
144  outputFile.close();
145 
146  return true;
147 }
std::vector< std::string > lines_
containing the content of the VHDL file

◆ split()

bool L1GtVhdlTemplateFile::split ( const std::string &  param,
std::vector< std::string > &  result 
) const

seperates a string at all blanks and saves the elements in result

Definition at line 311 of file L1GtVhdlTemplateFile.cc.

References mps_fire::i, isBlank(), mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.

Referenced by getConditionsFromAlgo().

311  {
312  unsigned int i = 0;
313  while (isBlank(param[i])) {
314  i++;
315  }
316 
317  std::string temp = param.substr(i);
318  std::size_t pos = temp.find(' ');
319 
320  if (pos != std::string::npos) {
321  std::string temp2 = temp.substr(0, pos);
322  result.push_back(temp2);
323  while (split(temp.substr(pos), result))
324  split(temp.substr(pos), result);
325 
326  } else if (!isBlank(temp[pos + 1])) {
327  result.push_back(temp);
328  return false;
329  } else
330  return false;
331 
332  return false;
333 }
bool isBlank(const char &chr) const
checks weather a char is a blank
bool split(const std::string &param, std::vector< std::string > &result) const
seperates a string at all blanks and saves the elements in result

◆ substitute()

bool L1GtVhdlTemplateFile::substitute ( const std::string &  searchString,
const std::string &  replaceString 
)

replaces searchString with replaceString

Definition at line 149 of file L1GtVhdlTemplateFile.cc.

References findAndReplaceString(), lines_, edm::replaceString(), and summarizeEdmComparisonLogfiles::success.

Referenced by L1GtVhdlWriterCore::buildCommonHeader(), L1GtVhdlWriterCore::buildDefValuesBuffer(), L1GtVhdlWriterCore::getCondChipVhdContentFromTriggerMenu(), L1GtVhdlWriterCore::openVhdlFileWithCommonHeader(), L1GtVhdlWriterCore::writeAlgoSetup(), L1GtVhdlWriterCore::writeCondChipPkg(), L1GtVhdlWriterCore::writeConditionChipSetup(), L1GtVhdlWriterCore::writeEtmSetup(), L1GtVhdlWriterCore::writeMuonSetupVhdl(), and L1GtVhdlWriterCore::writeQsfSetupFiles().

149  {
150  bool success = false;
151 
152  std::vector<std::string>::iterator iter = lines_.begin();
153  while (iter != lines_.end()) {
154  //The substitution parameter always appears as follows: $(parameter)
155  while (findAndReplaceString(*iter, ("$(" + searchString + ")"), replaceString)) {
156  findAndReplaceString(*iter, ("$(" + searchString + ")"), replaceString);
157  success = true;
158  }
159  iter++;
160  }
161 
162  return success;
163 }
static const bool findAndReplaceString(std::string &paramString, const std::string &searchString, const std::string &replaceString)
replaces searchString with replaceString at it&#39;s first occurance in string
void replaceString(std::string &demangledName, std::string const &from, std::string const &to)
std::vector< std::string > lines_
containing the content of the VHDL file

Member Data Documentation

◆ intern_

bool L1GtVhdlTemplateFile::intern_
private

internal files additionally have entries in parameterMap_ for "normal" files parameterMap is empty

Definition at line 29 of file L1GtVhdlTemplateFile.h.

Referenced by L1GtVhdlTemplateFile().

◆ lines_

std::vector<std::string> L1GtVhdlTemplateFile::lines_
private

◆ parameterMap_

std::map<std::string, std::string> L1GtVhdlTemplateFile::parameterMap_
private

containing the header information of internal files

Definition at line 33 of file L1GtVhdlTemplateFile.h.

Referenced by getInternalParameter(), open(), printParameterMap(), and returnParameterMap().