134 return mName.c_str();
138 const std::list<RndObject *> &
GetRefs()
const {
149 mInternal = nInternal;
Stream of raw bytes, the base of the memory, file, and network streams.
Definition binstream.h:22
Text output stream.
Definition prnstream.h:16
Base of every object the renderer can load, resolve by name, and serialise.
Definition rndobject.h:20
RndObject(const char *pszName)
Construct an object and register it under a name.
virtual void DumpText(PrnStream &stream)
Write a description of the object.
void SetName(const char *pszName)
Register the object under a different name.
void RemoveRef(RndObject *pReferrer)
Drop the first registration AddRef() made for a referrer.
virtual const char * ClassName() const =0
Report the name of the object's most derived class.
std::list< RndObject * > mRefs
Definition rndobject.h:153
virtual void Copy(const RndObject *pSource, int nFlags)=0
Copy the state of another object into this one.
void SetInternal(int nInternal)
Definition rndobject.h:148
const std::list< RndObject * > & GetRefs() const
Definition rndobject.h:138
virtual void Save(BinStream &stream)=0
Write the object's serialised form.
static constexpr int kCopyChildLists
The bit of the Copy() flags that copies the child lists of the mix-ins.
Definition rndobject.h:130
int GetInternal() const
Definition rndobject.h:143
virtual void Replace(RndObject *pFrom, RndObject *pTo)=0
Replace every stored pointer to one object with another.
String mName
Definition rndobject.h:154
void AddRef(RndObject *pReferrer)
Register an object as a store of a pointer to this one.
const char * GetName() const
Definition rndobject.h:133
virtual ~RndObject()
Notify every referrer, then erase the registration.
virtual void Load(BinStream &stream)=0
Read the object's serialised form.
Growable text buffer that is also a PrnStream.
Definition string.h:19
PrnStream & operator<<(PrnStream &stream, const RndObject *pObject)
Write an object's name, or "no object" for null.