18 #define DATASVC_RECORDDATASVC_CPP
49 sc = service(m_persSvcName, m_cnvSvc,
true);
58 sc = setDataLoader( m_cnvSvc );
60 log <<
MSG::ERROR <<
"Failed to attach dataloader RecordPersistencySvc." <<
endmsg;
70 if( !m_incidentSvc ) {
79 m_incidentSvc->addListener(
this,
"FILE_OPEN_READ");
80 m_incidentSvc->addListener(
this,m_saveIncidentName);
92 if( m_incidentSvc ) m_incidentSvc->removeListener(
this);
93 if( m_cnvSvc ) m_cnvSvc->release();
101 if ( incident.
type() ==
"FILE_OPEN_READ" ) {
103 const Ctxt* inc =
dynamic_cast<const Ctxt*
>(&incident);
105 registerRecord(inc->source(),inc->tag());
106 if ( !m_incidentName.empty() ) {
107 StringV incidents(m_incidents);
110 m_incidentSvc->fireIncident(
Incident(*
i,m_incidentName));
117 else if ( incident.
type() == m_saveIncidentName ) {
134 sc = objectLeaves(pObj, leaves);
136 for ( Leaves::const_iterator
i=leaves.
begin();
i != leaves.
end();
i++ )
148 if ( !data.empty() && 0 != pAddr ) {
163 else if ( !data.empty() && 0 == pAddr ) {
165 log <<
MSG::INFO <<
"Failed to register record for:" << data <<
" [Invalid Address]" <<
endmsg;