void test_ticker()
 {
     using diffpy::eventticker::EventTicker;
     msftb = ScatteringFactorTable::createByType("X");
     EventTicker e0 = msftb->ticker();
     TS_ASSERT_EQUALS(e0, msftb->clone()->ticker());
     TS_ASSERT_EQUALS(e0, dumpandload(msftb)->ticker());
     msftb->setCustomAs("C", "C", 6.1);
     TS_ASSERT_LESS_THAN(e0, msftb->ticker());
 }
Exemplo n.º 2
0
void ScatteringFactorTableOwner::setScatteringFactorTable(
        ScatteringFactorTablePtr sft)
{
    ensureNonNull("ScatteringFactorTable", sft);
    if (msftable != sft)  sft->ticker().click();
    msftable = sft;
}