file write clarifications

handle clang complaints about hidden virtuals in the context of file writes that have thier own routes and I/O needs.
This commit is contained in:
AzaezelX 2024-06-10 13:15:27 -05:00
parent 3fbd3119a6
commit 5c701fe09e
5 changed files with 17 additions and 11 deletions

View file

@ -111,6 +111,7 @@ private:
void compileCustomState( TamlWriteNode* pTamlWriteNode );
void compileCustomNodeState( TamlCustomNode* pCustomNode );
void write(Stream& stream, U32 tabStop, U32 flags = 0) override { Con::errorf("Taml:Can Not write a file interface object to a file"); }; //Don't allow writing Taml objects *to* files
bool write( FileStream& stream, SimObject* pSimObject, const TamlFormatMode formatMode );
SimObject* read( FileStream& stream, const TamlFormatMode formatMode );
template<typename T> inline T* read( FileStream& stream, const TamlFormatMode formatMode )