MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteRepositoryConfig

Method WriteRepositoryConfig

Source/CPack/IFW/cmCPackIFWRepository.cxx:202–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void cmCPackIFWRepository::WriteRepositoryConfig(cmXMLWriter& xout) const
203{
204 xout.StartElement("Repository");
205
206 // Url
207 xout.Element("Url", this->Url);
208 // Enabled
209 if (!this->Enabled.empty()) {
210 xout.Element("Enabled", this->Enabled);
211 }
212 // Username
213 if (!this->Username.empty()) {
214 xout.Element("Username", this->Username);
215 }
216 // Password
217 if (!this->Password.empty()) {
218 xout.Element("Password", this->Password);
219 }
220 // DisplayName
221 if (!this->DisplayName.empty()) {
222 xout.Element("DisplayName", this->DisplayName);
223 }
224
225 xout.EndElement();
226}
227
228void cmCPackIFWRepository::WriteRepositoryUpdate(cmXMLWriter& xout) const
229{

Callers 1

GenerateInstallerFileMethod · 0.80

Calls 4

StartElementMethod · 0.45
ElementMethod · 0.45
emptyMethod · 0.45
EndElementMethod · 0.45

Tested by

no test coverage detected