<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 04/27/2010 10:32 AM, David Sarrut wrote:
<blockquote
cite="mid:l2o99fdea181004270132t4c24c78es37a1272b5f4ebca@mail.gmail.com"
type="cite"><br>
astyle ? ok can we do what has been proposed at once ? <br>
</blockquote>
<br>
Yes, if everyone agrees. Note that astyle cannot do any of these:<br>
<br>
<br>
>>- all member functions start with an upper case (like vtk and
itk, but unlike QT !) : SetToto(a) and GetToto()<br>
- all member variables start with m, eg : mToto or mTiti (unlike vtk,
unlike qt, unlike itk)<br>
-
delimitate the function (in cxx and txx) with comment like
//------------ (see for example clitkBinarizeImageGenericFilter.txx)<br>
<br>
<br>
<blockquote
cite="mid:l2o99fdea181004270132t4c24c78es37a1272b5f4ebca@mail.gmail.com"
type="cite"><br>
<br>
<div class="gmail_quote">On Tue, Apr 27, 2010 at 10:30, Joël Schaerer
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:joel.schaerer@gmail.com">joel.schaerer@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I
don't really have a preference, but I suggest that we change all the<br>
sources at once with astyle once we converge on a standard. Of course<br>
using the default astyle layout would be the simplest :)<br>
<br>
On a completely unrelated topic, if you use vv a lot from the command<br>
line, I suggest adding the following line to your .bashrc:<br>
<br>
complete -A file -X '*.raw' vv<br>
<br>
It makes dealing with mhd files a lot more pleasant.<br>
<br>
joel<br>
<div>
<div class="h5"><br>
On 04/27/2010 09:36 AM, Simon Rit wrote:<br>
> After working a bit on clitk3, I have the feeling that there is<br>
> absolutely no consistency between (and even within) files. I don't<br>
> really think we should adopt a coding standard because we should
keep<br>
> our own coding styles but it would be nice if we could just set a<br>
> minimal set of rules for the sake of readability. I suggest these
ones<br>
> first:<br>
> - indentation: 2 spaces<br>
> - tabs are replaced by spaces<br>
> - opening and closing characters of a block are aligned
vertically, e.g.<br>
> if (true)<br>
> {<br>
> }<br>
> - types are suffixed with Type (as in ITK if I'm not mistaking)<br>
> - preprocessor defines and macros in upper case<br>
><br>
> For the rest (e.g. naming of functions and variables), we can try
to<br>
> follow the rules of our third-party libraries (itk and vtk). What
do<br>
> you think?<br>
> Simon<br>
> _______________________________________________<br>
> vv mailing list<br>
> <a moz-do-not-send="true" href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a><br>
> <a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv"
target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a><br>
><br>
<br>
<br>
</div>
</div>
--<br>
Joël Schaerer, PhD<br>
Research Engineer<br>
<br>
Centre de lutte contre le cancer Léon Bérard<br>
Service de radiothérapie<br>
28 rue Laënnec<br>
69373 LYON CEDEX 08<br>
<br>
Tel: 04 78 78 51 50<br>
06 26 65 29 54<br>
<br>
<a moz-do-not-send="true" href="http://www.creatis.insa-lyon.fr/rio"
target="_blank">http://www.creatis.insa-lyon.fr/rio</a><br>
<a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/rio/vv" target="_blank">http://www.creatis.insa-lyon.fr/rio/vv</a><br>
<div>
<div class="h5"><br>
_______________________________________________<br>
vv mailing list<br>
<a moz-do-not-send="true" href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a><br>
<a moz-do-not-send="true"
href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv"
target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
David Sarrut, Phd<br>
Chargé de recherche CNRS<br>
Centre de lutte contre le cancer Léon Bérard<br>
28 rue Laënnec, 69373 Lyon cedex 08<br>
Laboratoire CREATIS-LRMN UMR CNRS 5220, Inserm U 630<br>
Tel : 04 78 78 51 51 / 06 74 72 05 42<br>
<a moz-do-not-send="true" href="http://www.creatis.insa-lyon.fr/rio">http://www.creatis.insa-lyon.fr/rio</a><br>
______________________________________________<br>
"2 + 2 = 5, for extremely large values of 2"<br>
______________________________________________<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
vv mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a>
<a class="moz-txt-link-freetext" href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="80">--
Joël Schaerer, PhD
Research Engineer
Centre de lutte contre le cancer Léon Bérard
Service de radiothérapie
28 rue Laënnec
69373 LYON CEDEX 08
Tel: 04 78 78 51 50
06 26 65 29 54
<a class="moz-txt-link-freetext" href="http://www.creatis.insa-lyon.fr/rio">http://www.creatis.insa-lyon.fr/rio</a>
<a class="moz-txt-link-freetext" href="http://www.creatis.insa-lyon.fr/rio/vv">http://www.creatis.insa-lyon.fr/rio/vv</a>
</pre>
</body>
</html>