"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/server/core/dctable.cpp" between
netxms-3.1.352.tar.gz and netxms-3.1.361.tar.gz

About: NetXMS is a multi-platform open source network management and monitoring system.

dctable.cpp  (netxms-3.1.352):dctable.cpp  (netxms-3.1.361)
skipping to change at line 1098 skipping to change at line 1098
unlock(); unlock();
} }
/** /**
* Create management pack record * Create management pack record
*/ */
void DCTable::createExportRecord(StringBuffer &xml) void DCTable::createExportRecord(StringBuffer &xml)
{ {
lock(); lock();
xml.appendFormattedString(_T("\t\t\t\t<dctable id=\"%d\">\n") xml.append(_T("\t\t\t\t<dctable id=\""));
_T("\t\t\t\t\t<guid>%s</guid>\n") xml.append(m_id);
_T("\t\t\t\t\t<name>%s</name>\n") xml.append(_T("\">\n\t\t\t\t\t<guid>"));
_T("\t\t\t\t\t<description>%s</description>\n") xml.append(m_guid);
_T("\t\t\t\t\t<origin>%d</origin>\n") xml.append(_T("</guid>\n\t\t\t\t\t<name>"));
_T("\t\t\t\t\t<scheduleType>%d</scheduleType>\n") xml.append(EscapeStringForXML2(m_name));
_T("\t\t\t\t\t<interval>%s</interval>\n") xml.append(_T("</name>\n\t\t\t\t\t<description>"));
_T("\t\t\t\t\t<retentionType>%d</retentionType>\n") xml.append(EscapeStringForXML2(m_description));
_T("\t\t\t\t\t<retention>%s</retention>\n") xml.append(_T("</description>\n\t\t\t\t\t<origin>"));
_T("\t\t\t\t\t<systemTag>%s</systemTag>\n") xml.append(static_cast<INT32>(m_source));
_T("\t\t\t\t\t<flags>%d</flags>\n") xml.append(_T("</origin>\n\t\t\t\t\t<scheduleType>"));
_T("\t\t\t\t\t<snmpPort>%d</snmpPort>\n") xml.append(static_cast<INT32>(m_pollingScheduleType));
_T("\t\t\t\t\t<instanceDiscoveryMethod>%d</instanceDis xml.append(_T("</scheduleType>\n\t\t\t\t\t<interval>"));
coveryMethod>\n") xml.append(EscapeStringForXML2(m_pollingIntervalSrc));
_T("\t\t\t\t\t<instance>%s</instance>\n") xml.append(_T("</interval>\n\t\t\t\t\t<retentionType>"));
_T("\t\t\t\t\t<instanceRetentionTime>%d</instanceReten xml.append(static_cast<INT32>(m_retentionType));
tionTime>\n") xml.append(_T("</retentionType>\n\t\t\t\t\t<retention>"));
_T("\t\t\t\t\t<comments>%s</comments>\n"), xml.append(EscapeStringForXML2(m_retentionTimeSrc));
(int)m_id, (con xml.append(_T("</retention>\n\t\t\t\t\t<systemTag>"));
st TCHAR *)m_guid.toString(), xml.append(EscapeStringForXML2(m_systemTag));
(const TCHAR *) xml.append(_T("</systemTag>\n\t\t\t\t\t<flags>"));
EscapeStringForXML2(m_name), xml.append(m_flags);
(const TCHAR *)EscapeStringForXML2(m_description), xml.append(_T("</flags>\n\t\t\t\t\t<snmpPort>"));
m_pollingScheduleType, xml.append(m_snmpPort);
(const TCHAR *)EscapeStringForXML2(m_pollingIntervalSr xml.append(_T("</snmpPort>\n\t\t\t\t\t<instanceDiscoveryMethod>"));
c), xml.append(m_instanceDiscoveryMethod);
m_retentionType, xml.append(_T("</instanceDiscoveryMethod>\n\t\t\t\t\t<instance>"));
(const TCHAR *)EscapeStringForXML2(m_retentionTimeSrc) xml.append(EscapeStringForXML2(m_instance));
, xml.append(_T("</instance>\n\t\t\t\t\t<instanceRetentionTime>"));
(const TCHAR *)EscapeStringForXML2(m_systemTag), xml.append(m_instanceRetentionTime);
(int)m_flags, ( xml.append(_T("</instanceRetentionTime>\n\t\t\t\t\t<comments>"));
int)m_snmpPort, (int)m_instanceDiscoveryMethod, xml.append(EscapeStringForXML2(m_comments));
(const TCHAR *) xml.append(_T("</comments>\n"));
EscapeStringForXML2(m_instance), m_instanceRetentionTime,
(const TCHAR *)
EscapeStringForXML2(m_comments));
if (m_transformationScriptSource != NULL) if (m_transformationScriptSource != NULL)
{ {
xml.append(_T("\t\t\t\t\t<transformation>")); xml.append(_T("\t\t\t\t\t<transformation>"));
xml.appendPreallocated(EscapeStringForXML(m_transformationScriptS ource, -1)); xml.appendPreallocated(EscapeStringForXML(m_transformationScriptS ource, -1));
xml.append(_T("</transformation>\n")); xml.append(_T("</transformation>\n"));
} }
if ((m_schedules != NULL) && (m_schedules->size() > 0)) if ((m_schedules != NULL) && (m_schedules->size() > 0))
{ {
 End of changes. 1 change blocks. 
36 lines changed or deleted 33 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)