COPASI API  4.16.103
Macros
CListOfLayouts.cpp File Reference
#include "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 "report/CKeyFactory.h"
#include "copasi/report/CCopasiRootContainer.h"
#include "SBMLDocumentLoader.h"
Include dependency graph for CListOfLayouts.cpp:

Go to the source code of this file.

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

#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));\
}\
}\
}
if(!yymsg) yymsg

Definition at line 35 of file CListOfLayouts.cpp.

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

Definition at line 53 of file CListOfLayouts.cpp.

Referenced by CListOfLayouts::exportToSBML().

#define USE_LAYOUT   1

Definition at line 17 of file CListOfLayouts.cpp.

#define USE_RENDER   1

Definition at line 18 of file CListOfLayouts.cpp.