Hi Philippe,
BbrUuidK is quite simple. This is its header file:
#include "TObject.h"
#include "TString.h"
#include "BbrUUID/Guid.hh"
class BbrUuidK : public TObject {
public:
BbrUuidK();
BbrUuidK(const BbrUUID::Guid& id);
virtual ~BbrUuidK( );
const BbrUUID::Guid& getUuid() const;
Bool_t rolloverExists() { return _successor > 0; }
UShort_t successor() { return _successor; }
TString thisFileFullExtension();
TString thisFileExtension();
TString rolloverExtension();
void setUuid(const BbrUUID::Guid& id);
void setSuccessor(const UShort_t& next) { _successor = next; return; }
void setExtension(const TString& ext) { _extension = ext; return; }
const BbrUUID::Guid& setUuid();
virtual void Print(Option_t* option="") const;
protected:
private:
UChar_t _uuid[16]; // The Persistent Data
mutable BbrUUID::Guid* _guid; //! The Transient Guid;
UShort_t _successor; // The continuation File Index
TString _extension; // Extension of continuation file
ClassDef(BbrUuidK,1) // A Unique UID for Kanga Files
};
And this is the output of the GetStreamerInfo()-l>s():
root [1] gROOT->GetClass("BbrUuidK")->GetStreamerInfo()->ls()
StreamerInfo for class: BbrUuidK, version=1
TObject BASE offset= 0 type=66 Basic ROOT object
UChar_t _uuid[16] offset= 12 type=31 The Persistent Data
UShort_t _successor offset= 32 type=12 The continuation File Index
TString _extension offset= 36 type=65 Extension of continuation file
i= 0, TObject type= 66, offset= 0, len=1, method=0
i= 1, _uuid type= 31, offset= 12, len=16, method=0
i= 2, _successor type= 12, offset= 32, len=1, method=0
i= 3, _extension type= 65, offset= 36, len=1, method=0
root [2] gROOT->GetClass("BbrUuidK")->GetStreamerInfos()->ls();
StreamerInfo for class: BbrUuidK, version=1
TObject BASE offset= 0 type=66 Basic ROOT object
UChar_t _uuid[16] offset= 12 type=31 The Persistent Data
UShort_t _successor offset= 32 type=12 The continuation File Index
TString _extension offset= 36 type=65 Extension of continuation file
i= 0, TObject type= 66, offset= 0, len=1, method=0
i= 1, _uuid type= 31, offset= 12, len=16, method=0
i= 2, _successor type= 12, offset= 32, len=1, method=0
i= 3, _extension type= 65, offset= 36, len=1, method=0
root [3]
And finaly the line in the LinkDef file is
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ namespace BbrUUID;
#pragma link C++ class Kan;
#pragma link C++ class BbrUuidK;
...
Thanks,
Matthias
[quote=“pcanal”]This should of course not happen
Could you send more information about your problem (or a complete example to reproduce it)?
Are you using the new or old I/O, what is the content of your classes?
What is the result of
gROOT->GetClass("BbrUuidK")->GetStreamerInfo()->ls();
gROOT->GetClass("BbrUuidK")->GetStreamerInfos()->ls();
Cheers,
Philippe[/quote][/quote]