Version: 9.15.0
YACS::ENGINE::SchemaSave Class Reference

#include <VisitorSaveSchema.hxx>

Collaboration diagram for YACS::ENGINE::SchemaSave:

Public Member Functions

 SchemaSave (Proc *proc)
 
virtual void save (std::string xmlSchemaFile)
 

Protected Attributes

Proc_p
 

Detailed Description

Definition at line 118 of file VisitorSaveSchema.hxx.

Constructor & Destructor Documentation

◆ SchemaSave()

SchemaSave::SchemaSave ( Proc proc)

Definition at line 1179 of file VisitorSaveSchema.cxx.

1179  : _p(proc)
1180 {
1181  YASSERT(_p);
1182 }
#define YASSERT(val)
YASSERT macro is always defined, used like assert, but throw a YACS::Exception instead of abort.
Definition: YacsTrace.hxx:59

References _p, and YASSERT.

Member Function Documentation

◆ save()

void SchemaSave::save ( std::string  xmlSchemaFile)
virtual

Definition at line 1184 of file VisitorSaveSchema.cxx.

1185 {
1186  VisitorSaveSchema vss(_p);
1187  vss.openFileSchema(xmlSchemaFile);
1188  _p->accept(&vss);
1189  vss.closeFileSchema();
1190 }
virtual void accept(Visitor *visitor)
Definition: Proc.cxx:199
Base class for all visitors that save a schema.

References _p, YACS::ENGINE::Proc::accept(), YACS::ENGINE::VisitorSaveSchema::closeFileSchema(), and YACS::ENGINE::VisitorSaveSchema::openFileSchema().

Member Data Documentation

◆ _p

Proc* YACS::ENGINE::SchemaSave::_p
protected

Definition at line 124 of file VisitorSaveSchema.hxx.

Referenced by save(), and SchemaSave().


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