text: /*
   * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
   * All rights reserved.
   *
   * This library/application is free software; you can redistribute and/or modify it under the terms of
   * the license that is included with this library/application in the file license.txt.
   */
  
  #ifndef _SubStringRenderer_H
  #define _SubStringRenderer_H
  
  #include "Renderer.h"
  
  //! String.SubString() as Renderer
  /*!
  \par Configuration
  \code
  {
  	/String		Rendererspec	mandatory, String from which to get the substring
  	/Start		Rendererspec	optional, default 0, index of first character of substring
  	/Length		Rendererspec	optional, default -1, length of substring, -1 means all remaining chars
  }
  \endcode
  */
  class SubStringRenderer: public Renderer {
  public:
  	/*! @copydoc RegisterableObject::RegisterableObject(const char *) */
  	SubStringRenderer(const char *name) :
  		Renderer(name) {
  	}
  protected:
  	//! Renders String.SubString() from \c Start with length \c Length onto \em reply
  	/*! @copydetails Renderer::RenderAll(std::ostream &, Context &, const ROAnything &) */
  	virtual void RenderAll(std::ostream &reply, Context &ctx, const ROAnything &config);
  };
  
  #endif
  