|
|
Generated: 22 Nov 2000 |
#include <Package/ClassName.h>
Inheritance diagram for ClassName:
Public Types | |
typedef std::list<IService*> | ListSvc |
typedef std::map<const std::string, const ISvcFactory*> | MapFactory |
Public Methods | |
ClassName (Type1 argument1, Type2 argument2) | |
default creator. | |
virtual | ~ClassName () |
virtual destructor. | |
virtual void | method1 () |
Description of the method. More... | |
virtual int | method2 ( Type1 argument1, Type2 argument2 ) |
Another method with some arguments. More... | |
StatusCode | method3 () |
Yet another method of this class. | |
Protected Attributes | |
int | m_refcount |
Reference counter. | |
Type1* | m_member2 |
Pointer to an object of type Type1. | |
Type2& | m_member3 |
Reference to an object of type Type2. |
The description of a class is expected to be found before the class declaration in the .h file. The code is documented follwing the JavaDoc style. Using the multi-line documentation block or the simple line documentation as is shown in this example. The cvs keyword in the first line of the file will be expanded by the code management tool to include the file path name, revision number, the author and the state.
|
|
|
|
|
default creator.
|
|
virtual destructor.
|
|
Description of the method. Again the first sentence is used as a summary by the documentation tool. It is also expected to find comments before the method declaration. 00012 { 00013 // Implementation of method1. In order to not take unnecessary width 00014 // we should use 2 spaces for each identation. 00015 if ( bla & bla ) { 00016 for ( i = 0; i < n; i++ ) { 00017 // do something useful here 00018 ... 00019 } 00020 } 00021 } |
|
Another method with some arguments. The arguments can be documented as normal inline comments
00025 { 00026 int i; 00027 float f; 00028 for ( i = 0; i < 1000; i++ ) { 00029 // something here 00030 } 00031 return i; 00032 } |
|
Yet another method of this class.
00036 { 00037 return StatusCode::SUCCESS; 00038 } |
|
Pointer to an object of type Type1.
|
|
Reference to an object of type Type2.
|
|
Reference counter.
|