Back to index

salome-paravis  6.5.0
vtkParseExtras.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkParseExtras.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright (c) 2011 David Gobbi.
00017 
00018   Contributed to the VisualizationToolkit by the author in May 2011
00019   under the terms of the Visualization Toolkit 2008 copyright.
00020 -------------------------------------------------------------------------*/
00021 
00026 #ifndef VTK_PARSE_EXTRAS_H
00027 #define VTK_PARSE_EXTRAS_H
00028 
00029 #include "vtkParse.h"
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00040 size_t vtkParse_IdentifierLength(const char *text);
00041 
00046 size_t vtkParse_NameLength(const char *text);
00047 
00052 size_t vtkParse_UnscopedNameLength(const char *text);
00053 
00059 size_t vtkParse_LiteralLength(const char *text);
00060 
00069 size_t vtkParse_BasicTypeFromString(
00070   const char *text, unsigned int *type,
00071   const char **classname, size_t *classname_len);
00072 
00077 void vtkParse_ValueInfoFromString(ValueInfo *val, const char *text);
00078 
00083 void vtkParse_ExpandTypedef(ValueInfo *valinfo, ValueInfo *typedefinfo);
00084 
00089 void vtkParse_ExpandTypedefs(
00090   ValueInfo *valinfo, int n, const char *name[], const char *val[],
00091   ValueInfo *typedefinfo[]);
00092 
00098 void vtkParse_ExpandValues(
00099   ValueInfo *valinfo, int n, const char *name[], const char *val[]);
00100 
00106 const char *vtkParse_StringReplace(
00107   const char *str1, int n, const char *name[], const char *val[]);
00108 
00114 size_t vtkParse_DecomposeTemplatedType(
00115   const char *text, const char **classname,
00116   int n, const char ***args, const char *defaults[]);
00117 
00121 void vtkParse_FreeTemplateDecomposition(
00122   const char *classname, int n, const char **args);
00123 
00131 void vtkParse_InstantiateClassTemplate(
00132   ClassInfo *data, int n, const char *args[]);
00133 
00141 void vtkParse_IntantiateFunctionTemplate(
00142   FunctionInfo *data, int n, const char *args);
00143 
00149 size_t vtkParse_MangledTypeName(const char *name, char *new_name);
00150 
00156 size_t vtkParse_MangledLiteral(const char *name, char *new_name);
00157 
00161 const char **vtkParse_GetTemplateMacroTypes();
00162 
00166 const char **vtkParse_GetArrayTypes();
00167 
00168 
00169 #ifdef __cplusplus
00170 } /* extern "C" */
00171 #endif
00172 
00173 #endif