Closed nathansamson closed 13 years ago
the Bacsy::Source constructor should accept a SourceConfigInterface (or something similar) parameter instead of the CascadingSourceFile.
The (public) class interface of CascadingSourceFile would look like this
class CascadingSourceFile { bool isOpened()
std::vectorstd::string getSources();
CascadingSourceSection getSection(std::string); }
class CascadingSourceSection : public ISourceConfiguration { // implement the pure virtual methods from ISourceConfiguration }
and class ISourceConfiguration { virtual std::string getName() = 0; virtual unsigned int getPriority() = 0; }
Source itself could also inherit from ISourceConfiguration.
the Bacsy::Source constructor should accept a SourceConfigInterface (or something similar) parameter instead of the CascadingSourceFile.
The (public) class interface of CascadingSourceFile would look like this
class CascadingSourceFile { bool isOpened()
std::vectorstd::string getSources();
CascadingSourceSection getSection(std::string); }
class CascadingSourceSection : public ISourceConfiguration { // implement the pure virtual methods from ISourceConfiguration }
and class ISourceConfiguration { virtual std::string getName() = 0; virtual unsigned int getPriority() = 0; }
Source itself could also inherit from ISourceConfiguration.