const string& HollowElectronLens::GetType () const { _TYPESTR(HollowElectronLens); }
const string& Collimator::GetType () const { _TYPESTR(Collimator); }
const string& Solenoid::GetType () const { _TYPESTR(Solenoid); }
EPUB3_XML_BEGIN_NAMESPACE std::string TypeString(NodeType type) { std::string r; #define _TYPESTR(x) case NodeType::x: r = #x; break; switch (type) { _TYPESTR(Element); _TYPESTR(Attribute); _TYPESTR(Text); _TYPESTR(CDATASection); _TYPESTR(EntityReference); _TYPESTR(Entity); _TYPESTR(ProcessingInstruction); _TYPESTR(Comment); _TYPESTR(Document); _TYPESTR(DocumentType); _TYPESTR(DocumentFragment); _TYPESTR(Notation); _TYPESTR(HTMLDocument); _TYPESTR(DTD); _TYPESTR(ElementDeclaration); _TYPESTR(AttributeDeclaration); _TYPESTR(EntityDeclaration); _TYPESTR(NamespaceDeclaration); _TYPESTR(XIncludeStart); _TYPESTR(XIncludeEnd); #ifdef LIBXML_DOCBOOK_ENABLED _TYPESTR(DocbookSGMLDocument); #endif default: break; } return r; }
const string& Sextupole::GetType () const { _TYPESTR(Sextupole); }
void Quadrupole::PrepareTracker (ComponentTracker& aTracker) { _MPT } int Quadrupole::GetIndex () const { _RID } const string& Quadrupole::GetType () const { _TYPESTR(Quadrupole) } ModelElement* Quadrupole::Copy () const { _CP(Quadrupole) } // Class Sextupole const int Sextupole::ID = UniqueIndex(); Sextupole::Sextupole (const string& id, double len, double dnB) : _RMC1(2) { }
const string& MagnetMover::GetType () const { _TYPESTR(MagnetMover); }