18 #include "cableClass.h"
20 #include "gxsys/RegularExpression.hxx"
144 <<
"Trying to open a different file for HeaderFileReader..." << gxsys_stl::endl
146 <<
" c->GetFile(): " << c->GetFile() << gxsys_stl::endl
159 gxsys_stl::string mummy_version(this->
GetSettings()->GetMummyVersion());
161 if (!lineCommentString)
163 lineCommentString =
"//";
166 Emit(os, lineCommentString);
167 Emit(os,
"----------------------------------------------------------------------------\n");
168 Emit(os, lineCommentString);
170 Emit(os, lineCommentString);
171 Emit(os,
" This file was machine generated by:\n");
172 Emit(os, lineCommentString);
174 Emit(os, mummy_version.c_str());
176 Emit(os, lineCommentString);
178 Emit(os, lineCommentString);
179 Emit(os,
" Manual changes to this file may be overwritten by the next build.\n");
180 Emit(os, lineCommentString);
virtual bool ClassIsWrappable(const cable::Class *c)
virtual MummyLineOrientedTextFileReader * GetHeaderFileReader(const cable::Class *c)
Get or create a header file reader. Only uses class 'c' on the first call. Subsequent calls retrieve ...
virtual bool FundamentalTypeIsWrappable(const cable::Type *t)
virtual void SetFileName(const char *filename)
Set the filename.
void Emit(gxsys_ios::ostream &os, const char *s)
virtual bool TypeIsWrappable(const cable::Type *t)
virtual void SetEndExcludeRegex(const gxsys_stl::string &endExcludeRegex)
Set the regular expression that delineates a line as the end of a "marked as excluded" block...
const cable::Class * TargetClass
virtual ~MummyGenerator()
virtual gxsys_stl::string GetFileName()
Get the filename.
gxsys_stl::string GetFullyQualifiedNameForCPlusPlus(const cable::Named *n)
virtual void SetTargetClass(const cable::Class *c)
Set the current target class.
MummyLineOrientedTextFileReader * HeaderFileReader
gxsys_stl::string beginExcludeRegex
virtual bool FunctionTypeIsWrappable(const cable::FunctionType *ft)
virtual void SetSettings(MummySettings *settings)
Set the associated settings object.
virtual void SetExcludeMarkedLines(bool excludeMarkedLines)
Set whether to exclude lines between beginExcludeRegex and endExcludeRegex matching lines when consid...
virtual void SetBeginExcludeRegex(const gxsys_stl::string &beginExcludeRegex)
Set the regular expression that delineates a line as the beginning of a "marked as excluded" block...
virtual bool MethodIsWrappable(const cable::Method *m, const cable::Context::Access &access)
virtual const cable::Class * GetTargetClass()
Get the current target class.
Class that reads a text file and caches its lines and information about those lines for quick queries...
gxsys_stl::string endExcludeRegex
virtual void EmitMummyVersionComments(gxsys_ios::ostream &os, const char *lineCommentString)
virtual bool ClassIsWrappable(const cable::Class *c)
virtual bool FindClassWrappingSettings(const char *name, ClassWrappingSettings *cws)
virtual MummySettings * GetSettings()
Get the associated settings object.