Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
This is a class for showing how to document your code using doxygen. More...
#include <DocumentationExample.h>
Public Member Functions | |
DocumentationExample () | |
A constructor. A more elaborate description of the constructor. More... | |
~DocumentationExample () | |
A destructor. A more elaborate description of the destructor. More... | |
int | ExampleCastCharToInt (int number, const char *name) |
Casts the char at position number to an int and returns it. More... | |
bool | TestWithin (std::string itsAString, int theInt) throw (std::out_of_range) |
Tests whether an integer is within the bounds of a string. More... | |
Public Attributes | |
int | zero |
The public definition of zero. More... | |
This is a class for showing how to document your code using doxygen.
The more detailed description is needed for some more elaborate description. Here you can describe anything anyone might ever want to know about your class. Of especial interest might be to mention what it can be used for or what its main purpose is. If you want you can even use pictures (you migth want take a look at the doxygen documentation for that).
Definition at line 25 of file DocumentationExample.h.
DocumentationExample::DocumentationExample | ( | ) |
A constructor. A more elaborate description of the constructor.
DocumentationExample::~DocumentationExample | ( | ) |
A destructor. A more elaborate description of the destructor.
int DocumentationExample::ExampleCastCharToInt | ( | int | number, |
const char * | name | ||
) |
Casts the char at position number to an int and returns it.
This function will take an int number and a char pointer name, then will try to access the int a position number and cast it to an int and return it. No verification is done within the function to ensure, that it is a valid position.
number | The position of the char to be cast. This should never be below 0 and not above the length of the char array. |
name | A constant character pointer. |
bool DocumentationExample::TestWithin | ( | std::string | itsAString, |
int | theInt | ||
) | |||
throw | ( | std::out_of_range | |
) |
Tests whether an integer is within the bounds of a string.
This will perform a check whether an int is bigger than an arbitrary zero and smaller than the length of the string.
itsAString | The string to be checked as reference |
theInt | The position to be checked for |
std::out_of_range | parameter is out of range. |
int DocumentationExample::zero |
The public definition of zero.
This variable is used to determine what will be regarded as zero.
Definition at line 70 of file DocumentationExample.h.