2018-03-28 20:50:38 +02:00
|
|
|
{
|
2018-03-29 12:27:23 +02:00
|
|
|
gSystem->Load("libDictExample");
|
2018-03-28 20:50:38 +02:00
|
|
|
Simple s;
|
|
|
|
cout << s.GetX() << endl;
|
|
|
|
TFile *_file = TFile::Open("tmp.root", "RECREATE");
|
|
|
|
gDirectory->WriteObject(&s, "MyS");
|
|
|
|
Simple *MyS = nullptr;
|
|
|
|
gDirectory->GetObject("MyS", MyS);
|
|
|
|
cout << MyS->GetX() << endl;
|
|
|
|
_file->Close();
|
|
|
|
}
|