COPASI API  4.40.278
CListOfLayouts.cpp File Reference
#include "copasi/copasi.h"
#include <sbml/packages/render/extension/RenderListOfLayoutsPlugin.h>
#include <sbml/packages/render/sbml/GlobalRenderInformation.h>
#include <sbml/ListOf.h>
#include <sbml/packages/layout/extension/LayoutExtension.h>
#include <sbml/packages/layout/sbml/Layout.h>
#include "CListOfLayouts.h"
#include "copasi/report/CKeyFactory.h"
#include "copasi/core/CRootContainer.h"
#include "SBMLDocumentLoader.h"

Macros

#define EXTENSION_CREATE_NS(type, variable, sbmlns)
 
#define LAYOUT_CREATE_NS(variable, sbmlns)    EXTENSION_CREATE_NS(LayoutPkgNamespaces,variable,sbmlns);
 
#define USE_LAYOUT   1
 
#define USE_RENDER   1
 

Macro Definition Documentation

◆ EXTENSION_CREATE_NS

#define EXTENSION_CREATE_NS (   type,
  variable,
  sbmlns 
)
Value:
type* variable;\
{\
XMLNamespaces* xmlns = sbmlns->getNamespaces();\
variable = dynamic_cast<type*>(sbmlns);\
if (variable == NULL)\
{\
variable = new type(sbmlns->getLevel(), sbmlns->getVersion());\
for (int i = 0; i < xmlns->getNumNamespaces(); i++)\
{\
if (!variable->getNamespaces()->hasURI(xmlns->getURI(i)))\
variable->getNamespaces()->add(xmlns->getURI(i), xmlns->getPrefix(i));\
}\
}\
}

◆ LAYOUT_CREATE_NS

#define LAYOUT_CREATE_NS (   variable,
  sbmlns 
)     EXTENSION_CREATE_NS(LayoutPkgNamespaces,variable,sbmlns);

◆ USE_LAYOUT

#define USE_LAYOUT   1

◆ USE_RENDER

#define USE_RENDER   1