- class Visitor
- {
- public:
- virtual void visit(const char* name, Module& module) = 0;
- };
-
- virtual void setError(bool error) = 0;
- virtual bool getError() const = 0;
-
- virtual TextOutputStream& getOutputStream() = 0;
- virtual TextOutputStream& getErrorStream() = 0;
- virtual DebugMessageHandler& getDebugMessageHandler() = 0;
-
- virtual void registerModule(const char* type, int version, const char* name, Module& module) = 0;
- virtual Module* findModule(const char* type, int version, const char* name) const = 0;
- virtual void foreachModule(const char* type, int version, Visitor& visitor) = 0;
+class Visitor
+{
+public:
+virtual void visit( const char* name, Module& module ) const = 0;
+};
+
+virtual void setError( bool error ) = 0;
+virtual bool getError() const = 0;
+
+virtual TextOutputStream& getOutputStream() = 0;
+virtual TextOutputStream& getErrorStream() = 0;
+virtual DebugMessageHandler& getDebugMessageHandler() = 0;
+
+virtual void registerModule( const char* type, int version, const char* name, Module& module ) = 0;
+virtual Module* findModule( const char* type, int version, const char* name ) const = 0;
+virtual void foreachModule( const char* type, int version, const Visitor& visitor ) = 0;