- Note:
- : This is work in progress.
- one header and one implementation file per C++ class .
- use the class name to make the filename of the class.
in ippdme/ippFoo.h
class ippFoo {
public :
ippFoo();
}
in ippFoo.cpp
#include "stdafx.h"
#include "ippdme/ippFoo.h"
- use const whenever possible
- use the doxygen convention to comment the code, to ease the automatic creation of code documentation
- http:://www.doxygen.org
- use braces always in "for" and "if" statement
- the following code is easier to read :
if ( i == 0 ) {
g();
} else {
for ( int j=0;j<k;j++) {
func(i,j);
}
}
than
if ( i == 0 ) g();
else
for ( int j=0;j<k;j++) func(i,j);
ippCommandPtr pCommand = get_some_command();
ippGotoCommandPtr pGotoCommand = static_cast<ippGotoCommand*>(pCommand.get());
Generated on Wed Nov 8 00:21:26 2006 for IPPDME by
1.4.1