<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I am writing a filter and I declare <i>strongly typed enums</i> in
the header of my filter. Something like:<br>
<br>
<font face="Courier New, Courier, monospace">// MyFilter.h<br>
<b>enum class</b> MyTypes<br>
{<br>
ONE = 0,<br>
TWO,<br>
THREE<br>
};<br>
<br>
...<br>
<br>
class MyFilter : vtkDataSetAlgorithm {...};</font><br>
<br>
I am compiling the code by including (<font face="Courier New,
Courier, monospace">${PARAVIEW_USE_FILE}</font>) in order to
generate a ParaView plugin. If I do "not" use <font face="Courier
New, Courier, monospace">ADD_PARAVIEW_PLUGIN</font>, the code
compiles fine with no error. However, if I use <font face="Courier
New, Courier, monospace">ADD_PARAVIEW_PLUGIN</font> as following:<br>
<br>
<font face="Courier New, Courier, monospace">ADD_PARAVIEW_PLUGIN(<br>
MyFilterPlugin<br>
"1.0"<br>
DOCUMENTATION_DIR /MyPath/doc<br>
SERVER_MANAGER_XML </font><font face="Courier New,
Courier, monospace"><font face="Courier New, Courier, monospace">/MyPath</font>/MyFilter.xml<br>
GUI_RESOURCE_FILES </font><font face="Courier New,
Courier, monospace"><font face="Courier New, Courier, monospace">/MyPath</font>/MyFilter.xml<br>
SERVER_MANAGER_SOURCES </font><font face="Courier New,
Courier, monospace"><font face="Courier New, Courier, monospace">/MyPath</font>/MyFilter.cxx)</font><br>
<br>
then I get the following error:<br>
<br>
<font face="Courier New, Courier, monospace">-- Generate module:
MyFilterPlugin<br>
[ 62%] CS Wrapping - generating MyFilterClientServer.cxx<br>
syntax error<br>
In /MyPath/MyFilter.h:34:<br>
syntax error.<br>
make[2]: *** [MyFilterClientServer.cxx] Error 1<br>
make[1]: *** [CMakeFiles/MyFilterPlugin.dir/all] Error 2<br>
make: *** [all] Error 2</font><br>
<br>
By removing the <font face="Courier New, Courier, monospace">enum
class</font>, the code compiles fine with no error in ParaView. Is
it a bug or am I missing something here?<br>
<br>
Thanks.<br>
<br>
-Siavash<br>
<br>
<font face="Courier New, Courier, monospace">---------------------------<br>
Siavash Ameli<br>
Graduate Student Researcher<br>
Mechanical Eng. UC Berkeley</font><br>
<br>
<br>
</body>
</html>