COPASI API  4.40.278
StyleHandler Class Reference

#include <StyleHandler.h>

Inheritance diagram for StyleHandler:
[legend]

Public Member Functions

 StyleHandler (CXMLParser &parser, CXMLParserData &data)
 
virtual ~StyleHandler ()
 
- Public Member Functions inherited from CXMLHandler
 CXMLHandler (CXMLParser &parser, CXMLParserData &data, const Type &type)
 
virtual void end (const XML_Char *pszName)
 
virtual void start (const XML_Char *pszName, const XML_Char **papszAttrs)
 
virtual ~CXMLHandler ()
 

Protected Member Functions

virtual sProcessLogicgetProcessLogic () const
 
virtual bool processEnd (const XML_Char *pszName)
 
virtual CXMLHandlerprocessStart (const XML_Char *pszName, const XML_Char **papszAttrs)
 
- Protected Member Functions inherited from CXMLHandler
void addFix (const std::string &key, CDataObject *pObject)
 
std::string getElementName (const Type &type) const
 
std::string getExpectedElements (const Type &type) const
 
CXMLHandlergetHandler (const Type &type)
 
void init ()
 

Private Member Functions

 StyleHandler ()
 

Additional Inherited Members

- Public Types inherited from CXMLHandler
enum  Type {
  BEFORE = 0 , AFTER , UNKNOWN , AdditionalGraphicalObject ,
  Assignment , BasePoint1 , BasePoint2 , Body ,
  BoundingBox , CallParameter , ChannelSpec , CharacterData ,
  ColorDefinition , Comment , Compartment , CompartmentGlyph ,
  Constant , COPASI , CubicBezier , Curve ,
  CurveSegment , DelayExpression , Dimensions , Ellipse ,
  End , Event , Expression , Footer ,
  Function , GradientStop , Group , GUI ,
  Header , Image , InitialExpression , InitialState ,
  KineticLaw , Layout , LinearGradient , LineEnding ,
  LineSegment , ListOfAdditionalGraphicalObjects , ListOfAssignments , ListOfCallParameters ,
  ListOfChannels , ListOfColorDefinitions , ListOfCompartmentGlyphs , ListOfCompartments ,
  ListOfConstants , ListOfCurveSegments , ListOfElements , ListOfEvents ,
  ListOfFunctions , ListOfGlobalRenderInformation , ListOfGradientDefinitions , ListOfLayouts ,
  ListOfLineEndings , ListOfMetabGlyphs , ListOfMetaboliteReferenceGlyphs , ListOfMetabolites ,
  ListOfModelParameterSets , ListOfModelValues , ListOfModifiers , ListOfParameterDescriptions ,
  ListOfPlotItems , ListOfPlots , ListOfProducts , ListOfReactionGlyphs ,
  ListOfReactions , ListOfRenderInformation , ListOfReports , ListOfSliders ,
  ListOfStyles , ListOfSubstrates , ListOfTasks , ListOfTextGlyphs ,
  ListOfUnitDefinitions , ListOfUnsupportedAnnotations , MathML , Metabolite ,
  MetaboliteGlyph , MetaboliteReferenceGlyph , Method , MiriamAnnotation ,
  Model , ModelParameter , ModelParameterGroup , ModelParameterSet ,
  ModelValue , Modifier , NoiseExpression , Object ,
  Parameter , ParameterDescription , ParameterGroup , ParameterText ,
  PlotItem , PlotSpecification , Point , Polygon ,
  Position , PriorityExpression , Problem , Product ,
  RadialGradient , Reaction , ReactionGlyph , Rectangle ,
  RenderCurve , RenderCurveElement , RenderInformation , RenderText ,
  ReportDefinition , ReportSection , ReportTarget , SBMLMap ,
  SBMLReference , Slider , SourceParameter , Start ,
  StateTemplate , StateTemplateVariable , Style , Substrate ,
  Table , Task , Text , TextGlyph ,
  TriggerExpression , Unit , UnitDefinition , UnsupportedAnnotation ,
  HANDLER_COUNT
}
 
- Protected Attributes inherited from CXMLHandler
std::pair< Type, TypemCurrentElement
 
std::map< std::string, std::pair< Type, Type > > mElementName2Type
 
Type mElementType
 
const Type mHandlerType
 
std::pair< Type, TypemLastKnownElement
 
size_t mLevel
 
CXMLParserDatampData
 
CXMLParsermpParser
 
std::map< Type, std::set< Type > > mValidElements
 

Constructor & Destructor Documentation

◆ StyleHandler() [1/2]

StyleHandler::StyleHandler ( )
private

◆ StyleHandler() [2/2]

StyleHandler::StyleHandler ( CXMLParser parser,
CXMLParserData data 
)

Constructor

Parameters
CXMLParser& parser
CXMLParserData& data

Replace StyleLocal with the name type of the handler and implement the three methods below.

References CXMLHandler::init().

◆ ~StyleHandler()

StyleHandler::~StyleHandler ( )
virtual

Destructor

Member Function Documentation

◆ getProcessLogic()

CXMLHandler::sProcessLogic * StyleHandler::getProcessLogic ( ) const
protectedvirtual

Retrieve the structure containing the process logic for the handler.

Returns
sElementInfo *

Implements CXMLHandler.

References CXMLHandler::AFTER, CXMLHandler::BEFORE, CXMLHandler::Group, CXMLHandler::HANDLER_COUNT, and CXMLHandler::Style.

◆ processEnd()

◆ processStart()


The documentation for this class was generated from the following files: