18 #define DATASVC_RECORDDATASVC_CPP
48 sc = service(m_persSvcName, m_cnvSvc,
true);
57 sc = setDataLoader( m_cnvSvc );
59 log <<
MSG::ERROR <<
"Failed to attach dataloader RecordPersistencySvc." <<
endmsg;
69 if( !m_incidentSvc ) {
78 m_incidentSvc->addListener(
this,
"FILE_OPEN_READ");
79 m_incidentSvc->addListener(
this,m_saveIncidentName);
91 if( m_incidentSvc ) m_incidentSvc->removeListener(
this);
92 if( m_cnvSvc ) m_cnvSvc->release();
100 if ( incident.
type() ==
"FILE_OPEN_READ" ) {
102 const Ctxt* inc =
dynamic_cast<const Ctxt*
>(&incident);
104 registerRecord(inc->source(),inc->tag());
105 if ( !m_incidentName.empty() ) {
106 StringV incidents(m_incidents);
108 for( StringV::const_iterator
i=incidents.begin();
i!=incidents.end();++
i)
109 m_incidentSvc->fireIncident(
Incident(*
i,m_incidentName));
116 else if ( incident.
type() == m_saveIncidentName ) {
125 typedef vector<IRegistry*> Leaves;
133 sc = objectLeaves(pObj, leaves);
135 for ( Leaves::const_iterator
i=leaves.begin();
i != leaves.end();
i++ )
147 if ( !data.empty() && 0 != pAddr ) {
162 else if ( !data.empty() && 0 == pAddr ) {
164 log <<
MSG::INFO <<
"Failed to register record for:" << data <<
" [Invalid Address]" <<
endmsg;