Loading...
Searching...
No Matches
by::srcSupply Class Referenceabstract

Source code supply interface. More...

#include <srcSupply.hpp>

Inheritance diagram for by::srcSupply:
by::bufSupply by::fileSupply

Public Member Functions

virtual void * onSupplySrc (parser &ps, void *scanner) const =0
 

Static Public Member Functions

static srcSupplies makeSuppliesFrom (const std::string &path)
 if the given path points to a file, a single fileSupply will be returned. otherwise this will traverse all sub folders to find byeol src files and return each fileSupplies matching them.
 

Protected Member Functions

void * _scanString (parser &ps, const nchar *src, void *scanner) const
 

Detailed Description

Source code supply interface.

Abstract base for supplying source code to the parser from various sources.

Member Function Documentation

◆ makeSuppliesFrom()

static srcSupplies by::srcSupply::makeSuppliesFrom ( const std::string & path)
static

if the given path points to a file, a single fileSupply will be returned. otherwise this will traverse all sub folders to find byeol src files and return each fileSupplies matching them.

Parameters
pathfor single src file or directory including src files.

◆ onSupplySrc()

virtual void * by::srcSupply::onSupplySrc ( parser & ps,
void * scanner ) const
pure virtual
Returns
true if there is no more data to process.

Implemented in by::bufSupply, and by::fileSupply.


The documentation for this class was generated from the following file:
to Top