GLIP-Lib
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros
LayoutLoaderModules.hpp File Reference

Layout Loader Modules. More...

#include <vector>
#include "Core/LibTools.hpp"
#include "Core/HdlTexture.hpp"
#include "Core/Geometry.hpp"
#include "Core/ShaderSource.hpp"
#include "Core/Filter.hpp"
#include "Core/Pipeline.hpp"
#include "Modules/VanillaParser.hpp"
Include dependency graph for LayoutLoaderModules.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Glip::Modules::LayoutLoaderModule
 Module description for the LayoutLoader class. More...
 

Macros

#define LAYOUT_LOADER_ARGUMENTS_LIST
 
#define LAYOUT_LOADER_MODULE_DEFINITION(name)
 
#define LAYOUT_LOADER_MODULE_APPLY(moduleName, minArgs, maxArgs, bodyPresence, moduleManual)
 
#define ITERATOR_TO_FORMAT(iteratorName, elementName)   __ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, formatList, iteratorName, elementName)
 
#define CONST_ITERATOR_TO_FORMAT(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, formatList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_FORMAT(iteratorName)   ( iteratorName != formatList.end() )
 
#define FORMAT_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, formatList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, formatList, elementName) }
 
#define FORMAT_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, formatList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, formatList, elementName) }
 
#define APPEND_NEW_FORMAT(elementName, newElement)   __APPEND_NEW_ELEMENT(Glip::CoreGL::HdlTextureFormat, formatList, elementName, newElement)
 
#define ITERATOR_TO_SOURCE(iteratorName, elementName)   __ITERATOR_FIND(Glip::CoreGL::ShaderSource, sourceList, iteratorName, elementName)
 
#define CONST_ITERATOR_TO_SOURCE(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, sourceList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_SOURCE(iteratorName)   ( iteratorName != sourceList.end() )
 
#define SOURCE_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, sourceList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, sourceList, elementName) }
 
#define SOURCE_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, sourceList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, sourceList, elementName) }
 
#define APPEND_NEW_SOURCE(elementName, newElement)   __APPEND_NEW_ELEMENT(Glip::CoreGL::ShaderSource, sourceList, elementName, newElement)
 
#define ITERATOR_TO_GEOMETRY(iteratorName, elementName)   __ITERATOR_FIND(Glip::CorePipeline::GeometryModel, geometryList, iteratorName, elementName)
 
#define CONST_ITERATOR_TO_GEOMETRY(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, geometryList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_GEOMETRY(iteratorName)   ( iteratorName != geometryList.end() )
 
#define GEOMETRY_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipelin::GeometryModel, geometryList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, geometryList, elementName) }
 
#define GEOMETRY_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, geometryList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, geometryList, elementName) }
 
#define APPEND_NEW_GEOMETRY(elementName, newElement)   __APPEND_NEW_ELEMENT(Glip::CorePipeline::GeometryModel, geometryList, elementName, newElement)
 
#define ITERATOR_TO_FILTER(iteratorName, elementName)   __ITERATOR_FIND(Glip::CorePipeline::FilterLayout, filterList, iteratorName, elementName)
 
#define CONST_ITERATOR_TO_FILTER(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CorePipeline::FilterLayout, filterList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_FILTER(iteratorName)   ( iteratorName != filterList.end() )
 
#define FILTER_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::FilterLayout, filterList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, filterList, elementName) }
 
#define FILTER_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::FilterLayout, filterList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, filterList, elementName) }
 
#define APPEND_NEW_FILTER(elementName, newElement)   __APPEND_NEW_ELEMENT(Glip::CorePipeline::FilterLayout, filterList, elementName, newElement)
 
#define ITERATOR_TO_PIPELINE(iteratorName, elementName)   __ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, pipelineList, iteratorName, elementName)
 
#define CONST_ITERATOR_TO_PIPELINE(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, pipelineList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_PIPELINE(iteratorName)   ( iteratorName != pipelineList.end() )
 
#define PIPELINE_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, pipelineList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, pipelineList, elementName) }
 
#define PIPELINE_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, pipelineList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, pipelineList, elementName) }
 
#define APPEND_NEW_PIPELINE(elementName, newElement)   __APPEND_NEW_ELEMENT(Glip::CorePipeline::PipelineLayout, pipelineList, elementName, newElement)
 
#define CONST_ITERATOR_TO_REQUIREDFORMAT(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, requiredFormatList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_REQUIREDFORMAT(iteratorName)   ( iteratorName != requiredFormatList.end() )
 
#define REQUIREDFORMAT_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, requiredFormatList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, requiredFormatList, elementName) }
 
#define REQUIREDFORMAT_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, requiredFormatList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, requiredFormatList, elementName) }
 
#define CONST_ITERATOR_TO_REQUIREDSOURCE(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, requiredSourceList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_REQUIREDSOURCE(iteratorName)   ( iteratorName != requiredSourceList.end() )
 
#define REQUIREDSOURCE_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, requiredSourceList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, requiredSourceList, elementName) }
 
#define REQUIREDSOURCE_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, requiredSourceList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, requiredSourceList, elementName) }
 
#define CONST_ITERATOR_TO_REQUIREDGEOMETRY(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, requiredGeometryList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_REQUIREDGEOMETRY(iteratorName)   ( iteratorName != requiredGeometryList.end() )
 
#define REQUIREDGEOMETRY_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, requiredGeometryList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, requiredGeometryList, elementName) }
 
#define REQUIREDGEOMETRY_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, requiredGeometryList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, requiredGeometryList, elementName) }
 
#define CONST_ITERATOR_TO_REQUIREDPIPELINE(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, requiredPipelineList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_REQUIREDPIPELINE(iteratorName)   ( iteratorName != requiredPipelineList.end() )
 
#define REQUIREDPIPELINE_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, requiredPipelineList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, requirePipelineList, elementName) }
 
#define REQUIREDPIPELINE_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, requiredPipelineList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, requiredPipelineList, elementName) }
 
#define CONST_ITERATOR_TO_MODULE(iteratorName, elementName)   __CONST_ITERATOR_FIND(Glip::Modules::LayoutLoaderModule*, moduleList, iteratorName, elementName)
 
#define VALID_ITERATOR_TO_MODULE(iteratorName)   ( iteratorName != moduleList.end() )
 
#define MODULE_MUST_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::Modules::LayoutLoaderModule*, moduleList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, moduleList, elementName) }
 
#define MODULE_MUST_NOT_EXIST(elementName)   { __CONST_ITERATOR_FIND(Glip::Modules::LayoutLoaderModule*, moduleList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, moduleList, elementName) }
 
#define CAST_ARGUMENT(argID, type, varName)   type varName; if(!fromString(arguments[ argID ], varName)) throw Exception("Unable to cast argument " + toString( argID ) + " (\"" + arguments[argID] + "\") to " + #type + ".", sourceName, startLine, Exception::ClientScriptException);
 

Detailed Description

Layout Loader Modules.

Author
R. KERVICHE
Date
October 14th 2013

Macro Definition Documentation

#define APPEND_NEW_FILTER (   elementName,
  newElement 
)    __APPEND_NEW_ELEMENT(Glip::CorePipeline::FilterLayout, filterList, elementName, newElement)

APPEND_NEW_FILTER(elementName, newElement) Append the new element to the Filter list.

#define APPEND_NEW_FORMAT (   elementName,
  newElement 
)    __APPEND_NEW_ELEMENT(Glip::CoreGL::HdlTextureFormat, formatList, elementName, newElement)

APPEND_NEW_FORMAT(elementName, newElement) Append the new element to the Format list.

#define APPEND_NEW_GEOMETRY (   elementName,
  newElement 
)    __APPEND_NEW_ELEMENT(Glip::CorePipeline::GeometryModel, geometryList, elementName, newElement)

APPEND_NEW_GEOMETRY(elementName, newElement) Append the new element to the Geometry list.

#define APPEND_NEW_PIPELINE (   elementName,
  newElement 
)    __APPEND_NEW_ELEMENT(Glip::CorePipeline::PipelineLayout, pipelineList, elementName, newElement)

APPEND_NEW_PIPELINE(elementName, newElement) Append the new element to the Pipeline list.

#define APPEND_NEW_SOURCE (   elementName,
  newElement 
)    __APPEND_NEW_ELEMENT(Glip::CoreGL::ShaderSource, sourceList, elementName, newElement)

APPEND_NEW_SOURCE(elementName, newElement) Append the new element to the Shader Source list.

#define CAST_ARGUMENT (   argID,
  type,
  varName 
)    type varName; if(!fromString(arguments[ argID ], varName)) throw Exception("Unable to cast argument " + toString( argID ) + " (\"" + arguments[argID] + "\") to " + #type + ".", sourceName, startLine, Exception::ClientScriptException);

CAST_ARGUMENT( argID, type, varName ) Cast the argument arguments[argID] to some type (and create the variable varName). Raise an exception if the cast fails.

#define CONST_ITERATOR_TO_FILTER (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CorePipeline::FilterLayout, filterList, iteratorName, elementName)

CONST_ITERATOR_TO_FILTER( iteratorName, elementName ) Get a constant iterator on the Filter named elementName.

#define CONST_ITERATOR_TO_FORMAT (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, formatList, iteratorName, elementName)

CONST_ITERATOR_TO_FORMAT( iteratorName, elementName ) Get a constant iterator on the Format named elementName.

#define CONST_ITERATOR_TO_GEOMETRY (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, geometryList, iteratorName, elementName)

CONST_ITERATOR_TO_GEOMETRY( iteratorName, elementName ) Get a constant iterator on the Geometry named elementName.

#define CONST_ITERATOR_TO_MODULE (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::Modules::LayoutLoaderModule*, moduleList, iteratorName, elementName)

CONST_ITERATOR_TO_MODULE( iteratorName, elementName ) Get a constant iterator on the LayoutLoaderModule named elementName.

#define CONST_ITERATOR_TO_PIPELINE (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, pipelineList, iteratorName, elementName)

CONST_ITERATOR_TO_PIPELINE( iteratorName, elementName ) Get a constant iterator on the Pipeline named elementName.

#define CONST_ITERATOR_TO_REQUIREDFORMAT (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, requiredFormatList, iteratorName, elementName)

CONST_ITERATOR_TO_REQUIREDFORMAT( iteratorName, elementName ) Get a constant iterator on the Required Format named elementName.

#define CONST_ITERATOR_TO_REQUIREDGEOMETRY (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, requiredGeometryList, iteratorName, elementName)

CONST_ITERATOR_TO_REQUIREDGEOMETRY( iteratorName, elementName ) Get a constant iterator on the Required Geometry named elementName.

#define CONST_ITERATOR_TO_REQUIREDPIPELINE (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, requiredPipelineList, iteratorName, elementName)

CONST_ITERATOR_TO_REQUIREDPIPELINE( iteratorName, elementName ) Get a constant iterator on the Required Pipeline named elementName.

#define CONST_ITERATOR_TO_REQUIREDSOURCE (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, requiredSourceList, iteratorName, elementName)

CONST_ITERATOR_TO_REQUIREDSOURCE( iteratorName, elementName ) Get a constant iterator on the Required Format named elementName.

#define CONST_ITERATOR_TO_SOURCE (   iteratorName,
  elementName 
)    __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, sourceList, iteratorName, elementName)

CONST_ITERATOR_TO_SOURCE( iteratorName, elementName ) Get a constant iterator on the Source named elementName.

#define FILTER_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::FilterLayout, filterList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, filterList, elementName) }

FILTER_MUST_EXIST( elementName ) Check that the Filter named elementName must exist (raise an exception otherwise).

#define FILTER_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::FilterLayout, filterList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, filterList, elementName) }

FILTER_MUST_NOT_EXIST( elementName ) Check that the Filter named elementName must not exist (raise an exception otherwise).

#define FORMAT_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, formatList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, formatList, elementName) }

FORMAT_MUST_EXIST( elementName ) Check that the Format named elementName must exist (raise an exception otherwise).

#define FORMAT_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, formatList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, formatList, elementName) }

FORMAT_MUST_NOT_EXIST( elementName ) Check that the Format named elementName must not exist (raise an exception otherwise).

#define GEOMETRY_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipelin::GeometryModel, geometryList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, geometryList, elementName) }

GEOMETRY_MUST_EXIST( elementName ) Check that the Geometry named elementName must exist (raise an exception otherwise).

#define GEOMETRY_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, geometryList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, geometryList, elementName) }

GEOMETRY_MUST_NOT_EXIST( elementName ) Check that the Geometry named elementName must not exist (raise an exception otherwise).

#define ITERATOR_TO_FILTER (   iteratorName,
  elementName 
)    __ITERATOR_FIND(Glip::CorePipeline::FilterLayout, filterList, iteratorName, elementName)

ITERATOR_TO_FILTER( iteratorName, elementName ) Get an iterator on the Filter named elementName.

#define ITERATOR_TO_FORMAT (   iteratorName,
  elementName 
)    __ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, formatList, iteratorName, elementName)

ITERATOR_TO_FORMAT( iteratorName, elementName ) Get an iterator on the Format named elementName.

#define ITERATOR_TO_GEOMETRY (   iteratorName,
  elementName 
)    __ITERATOR_FIND(Glip::CorePipeline::GeometryModel, geometryList, iteratorName, elementName)

ITERATOR_TO_GEOMETRY( iteratorName, elementName ) Get an iterator on the Geometry named elementName.

#define ITERATOR_TO_PIPELINE (   iteratorName,
  elementName 
)    __ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, pipelineList, iteratorName, elementName)

ITERATOR_TO_PIPELINE( iteratorName, elementName ) Get an iterator on the Pipeline named elementName.

#define ITERATOR_TO_SOURCE (   iteratorName,
  elementName 
)    __ITERATOR_FIND(Glip::CoreGL::ShaderSource, sourceList, iteratorName, elementName)

ITERATOR_TO_SOURCE( iteratorName, elementName ) Get an iterator on the Source named elementName.

#define LAYOUT_LOADER_ARGUMENTS_LIST
Value:
const std::vector<std::string>& arguments, \
const std::string& body, \
const std::string& currentPath, \
std::vector<std::string>& dynamicPaths, \
std::map<std::string, Glip::CoreGL::HdlTextureFormat>& formatList, \
std::map<std::string, Glip::CoreGL::ShaderSource>& sourceList, \
std::map<std::string, Glip::CorePipeline::GeometryModel>& geometryList, \
std::map<std::string, Glip::CorePipeline::FilterLayout>& filterList, \
std::map<std::string, Glip::CorePipeline::PipelineLayout>& pipelineList, \
std::string& mainPipelineName, \
const std::vector<std::string>& staticPaths, \
const std::map<std::string, Glip::CoreGL::HdlTextureFormat>& requiredFormatList, \
const std::map<std::string, Glip::CoreGL::ShaderSource>& requiredSourceList, \
const std::map<std::string, Glip::CorePipeline::GeometryModel>& requiredGeometryList, \
const std::map<std::string, Glip::CorePipeline::PipelineLayout>& requiredPipelineList, \
const std::map<std::string, Glip::Modules::LayoutLoaderModule*>& moduleList, \
const std::string& sourceName, \
const int startLine, \
const int bodyLine, \
std::string& executionSource, \
std::string& executionSourceName, \
int& executionStartLine

LAYOUT_LOADER_ARGUMENTS_LIST List of the arguments of LayoutLaoderModule::apply. It does not include the parenthesis and it is safe to use from any namespace.

#define LAYOUT_LOADER_MODULE_APPLY (   moduleName,
  minArgs,
  maxArgs,
  bodyPresence,
  moduleManual 
)
Value:
moduleName :: moduleName (void) : Glip::Modules::LayoutLoaderModule( #moduleName, moduleManual, minArgs, maxArgs, bodyPresence) { } \
void moduleName :: apply(LAYOUT_LOADER_ARGUMENTS_LIST)
Definition: Component.hpp:32
#define LAYOUT_LOADER_ARGUMENTS_LIST
Definition: LayoutLoaderModules.hpp:848

LAYOUT_LOADER_MODULE_APPLY( moduleName, minArgs, maxArgs, bodyPresence, moduleManual) Source of a module.

#define LAYOUT_LOADER_MODULE_DEFINITION (   name)
Value:
class name : public Glip::Modules::LayoutLoaderModule \
{ \
public : \
name (void); \
\
};
Module description for the LayoutLoader class.
Definition: LayoutLoaderModules.hpp:746
virtual void apply(const std::vector< std::string > &arguments, const std::string &body, const std::string &currentPath, std::vector< std::string > &dynamicPaths, std::map< std::string, HdlTextureFormat > &formatList, std::map< std::string, ShaderSource > &sourceList, std::map< std::string, GeometryModel > &geometryList, std::map< std::string, FilterLayout > &filterList, std::map< std::string, PipelineLayout > &pipelineList, std::string &mainPipelineName, const std::vector< std::string > &staticPaths, const std::map< std::string, HdlTextureFormat > &requiredFormatList, const std::map< std::string, ShaderSource > &requiredSourceList, const std::map< std::string, GeometryModel > &requiredGeometryList, const std::map< std::string, PipelineLayout > &requiredPipelineList, const std::map< std::string, LayoutLoaderModule * > &moduleList, const std::string &sourceName, const int startLine, const int bodyLine, std::string &executionSource, std::string &executionSourceName, int &executionStartLine)=0
Interface of the module : this function will be called on each corresponding token CALL for the Layou...
#define LAYOUT_LOADER_ARGUMENTS_LIST
Definition: LayoutLoaderModules.hpp:848

LAYOUT_LOADER_MODULE_DEFINITION( name ) Declaration of a module.

#define MODULE_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::Modules::LayoutLoaderModule*, moduleList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, moduleList, elementName) }

MODULE_MUST_EXIST( elementName ) Check that the LayoutLoaderModule named elementName must exist (raise an exception otherwise).

#define MODULE_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::Modules::LayoutLoaderModule*, moduleList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, moduleList, elementName) }

MODULE_MUST_NOT_EXIST( elementName ) Check that the LayoutLoaderModule named elementName must not exist (raise an exception otherwise).

#define PIPELINE_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, pipelineList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, pipelineList, elementName) }

PIPELINE_MUST_EXIST( elementName ) Check that the Pipeline named elementName must exist (raise an exception otherwise).

#define PIPELINE_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, pipelineList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, pipelineList, elementName) }

PIPELINE_MUST_NOT_EXIST( elementName ) Check that the Pipeline named elementName must not exist (raise an exception otherwise).

#define REQUIREDFORMAT_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, requiredFormatList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, requiredFormatList, elementName) }

REQUIREDFORMAT_MUST_EXIST( elementName ) Check that the Required Format named elementName must exist (raise an exception otherwise).

#define REQUIREDFORMAT_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CoreGL::HdlTextureFormat, requiredFormatList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, requiredFormatList, elementName) }

REQUIREDFORMAT_MUST_NOT_EXIST( elementName ) Check that the Required Format named elementName must not exist (raise an exception otherwise).

#define REQUIREDGEOMETRY_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, requiredGeometryList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, requiredGeometryList, elementName) }

REQUIREDGEOMETRY_MUST_EXIST( elementName ) Check that the Required Geometry named elementName must exist (raise an exception otherwise).

#define REQUIREDGEOMETRY_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::GeometryModel, requiredGeometryList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, requiredGeometryList, elementName) }

REQUIREDGEOMETRY_MUST_NOT_EXIST( elementName ) Check that the Required Geometry named elementName must not exist (raise an exception otherwise).

#define REQUIREDPIPELINE_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, requiredPipelineList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, requirePipelineList, elementName) }

REQUIREDPIPELINE_MUST_EXIST( elementName ) Check that the Required Pipeline named elementName must exist (raise an exception otherwise).

#define REQUIREDPIPELINE_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CorePipeline::PipelineLayout, requiredPipelineList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, requiredPipelineList, elementName) }

REQUIREDPIPELINE_MUST_NOT_EXIST( elementName ) Check that the Required Pipeline named elementName must not exist (raise an exception otherwise).

#define REQUIREDSOURCE_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, requiredSourceList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, requiredSourceList, elementName) }

REQUIREDSOURCE_MUST_EXIST( elementName ) Check that the Required Format named elementName must exist (raise an exception otherwise).

#define REQUIREDSOURCE_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, requiredSourceList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, requiredSourceList, elementName) }

REQUIREDSOURCE_MUST_NOT_EXIST( elementName ) Check that the Required Format named elementName must not exist (raise an exception otherwise).

#define SOURCE_MUST_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, sourceList, iteratorName, elementName) __ELEMENT_MUST_BE_IN(iteratorName, sourceList, elementName) }

SOURCE_MUST_EXIST( elementName ) Check that the Shader Source named elementName must exist (raise an exception otherwise).

#define SOURCE_MUST_NOT_EXIST (   elementName)    { __CONST_ITERATOR_FIND(Glip::CoreGL::ShaderSource, sourceList, iteratorName, elementName) __ELEMENT_MUST_NOT_BE_IN(iteratorName, sourceList, elementName) }

SOURCE_MUST_NOT_EXIST( elementName ) Check that the Shader Source named elementName must not exist (raise an exception otherwise).

#define VALID_ITERATOR_TO_FILTER (   iteratorName)    ( iteratorName != filterList.end() )

VALID_ITERATOR_TO_FILTER( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_FORMAT (   iteratorName)    ( iteratorName != formatList.end() )

VALID_ITERATOR_TO_FORMAT( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_GEOMETRY (   iteratorName)    ( iteratorName != geometryList.end() )

VALID_ITERATOR_TO_GEOMETRY( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_MODULE (   iteratorName)    ( iteratorName != moduleList.end() )

VALID_ITERATOR_TO_MODULE( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_PIPELINE (   iteratorName)    ( iteratorName != pipelineList.end() )

VALID_ITERATOR_TO_PIPELINE( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_REQUIREDFORMAT (   iteratorName)    ( iteratorName != requiredFormatList.end() )

VALID_ITERATOR_TO_REQUIREDFORMAT( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_REQUIREDGEOMETRY (   iteratorName)    ( iteratorName != requiredGeometryList.end() )

VALID_ITERATOR_TO_REQUIREDGEOMETRY( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_REQUIREDPIPELINE (   iteratorName)    ( iteratorName != requiredPipelineList.end() )

VALID_ITERATOR_TO_REQUIREDPIPELINE( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_REQUIREDSOURCE (   iteratorName)    ( iteratorName != requiredSourceList.end() )

VALID_ITERATOR_TO_REQUIREDSOURCE( iteratorName ) Test if the iterator is valid (returns true or false).

#define VALID_ITERATOR_TO_SOURCE (   iteratorName)    ( iteratorName != sourceList.end() )

VALID_ITERATOR_TO_SOURCE( iteratorName ) Test if the iterator is valid (returns true or false).