Hi.<br>
<br>
I have found problems when trying to compile my vtkClasses and those classes have templates definitions.<br>
<br>
Example:<br>
<br>
#ifndef _vtkHMSimplifiedModel_h_<br>
#define _vtkHMSimplifiedModel_h_<br>
<br>
#include <vtkObject.h><br>
#include <vtkObjectFactory.h><br>
#include "hmCommonConfigure.h"<br>
<br>
class vtkHMTreeElement;<br>
class vtkArrayMap;<br>
<br>
class VTK_hmCommon_EXPORT vtkHMSimplifiedModel:public vtkObject<br>
{<br>
protected:<br>
vtkArrayMap<int, vtkHMTreeElement*> TreeNode;<br>
<br>
public:<br>
static vtkHMSimplifiedModel *New();<br>
vtkTypeRevisionMacro(vtkHMSimplifiedModel,vtkObject);<br>
void PrintSelf(ostream& os, vtkIndent indent);<br>
<br>
void SetName(const char* name){this->name = name;return;}<br>
const char* GetName(){return name;};<br>
<br>
protected:<br>
vtkHMSimplifiedModel();<br>
virtual ~vtkHMSimplifiedModel();<br>
<br>
// Description:<br>
// Class/object name.<br>
const char* name;<br>
};<br>
<br>
#endif /*_vtkHMSimplifiedModel_h_*/<br>
<br>
<br>
This example return a: "SYNTAX ERROR" before class declaration line, when generating vtkHMSimplifiedModelClientServer.cxx<br>
In my debugs, I have verified that the use of templates, for example
STL structures(vector,string,map) do not work. We found out that when a<br>
class name does not have the vtk prefix, this error also occurs. The
classes vtkArrayMap, vtkQueue, etc, where designed with this in mind?<br>
How can I to resolve this?, is this a bug or architectural design feature?, do you have any suggestion or comments?.<br>
<br>
Another question:<br>
What are the tags "//BTX" and "//ETX"? I think they might be related. (??)<br>
<br>
Best regards,<br clear="all"><br>-- <br>Diego Mazala