terralib:exemplo1
Diferenças
Aqui você vê as diferenças entre duas revisões dessa página.
| Próxima revisão | Revisão anterior | ||
| terralib:exemplo1 [2008/03/31 14:21] – created laercio | terralib:exemplo1 [2008/04/02 15:59] (atual) – 150.163.3.123 | ||
|---|---|---|---|
| Linha 1: | Linha 1: | ||
| <code cpp> | <code cpp> | ||
| - | /* | + | /********************** |
| Commun header | Commun header | ||
| - | */ | + | **********************/ |
| - | /** \file TeTemplate.h | + | /*! |
| - | \brief This file contains an template example | + | |
| - | \authot | + | \brief |
| + | |||
| + | This file can be used as reference for TerraLib programmers. | ||
| + | |||
| + | | ||
| + | \author Laércio (laercio@dpi.inpe.br) | ||
| */ | */ | ||
| + | |||
| + | |||
| #ifndef TE_TEMPLATE_H | #ifndef TE_TEMPLATE_H | ||
| #define TE_TEMPLATE_H | #define TE_TEMPLATE_H | ||
| - | # | + | # |
| // C includes | // C includes | ||
| Linha 28: | Linha 35: | ||
| class Foward; | class Foward; | ||
| - | /** \namespace | + | // |
| - | \brief This namespace contains | + | /*! |
| + | | ||
| */ | */ | ||
| + | |||
| namespace TerraLib | namespace TerraLib | ||
| { | { | ||
| Linha 36: | Linha 45: | ||
| class TeFoward; | class TeFoward; | ||
| - | /** \class TeTemplate | + | |
| - | \brief A Template class | + | //! A example of TerraLib programming style |
| + | /*! | ||
| + | This class is an example of TerraLib programming style. | ||
| + | |||
| + | | ||
| + | \author (?) | ||
| + | \sa | ||
| */ | */ | ||
| class TeTemplate | class TeTemplate | ||
| { | { | ||
| public: | public: | ||
| - | + | ||
| - | /** \brief Set the value of member myInt_ | + | //! Empty contructor |
| - | | + | |
| - | */ | + | |
| - | void setMyInt(const int& myInt); | + | |
| - | /** \brief Get the value of member myInt_ | + | |
| - | | + | /*! |
| - | */ | + | |
| - | const int& | + | */ |
| + | void setMyInt(const int& | ||
| - | const bool& isValid() const; | + | //! Get the value of member myInt_ |
| + | /*! | ||
| + | \return returns the value of the myInt_ member | ||
| + | */ | ||
| + | const int& getMyInt(void) const; | ||
| + | |||
| + | //! Verify if the object is valid | ||
| + | /*! | ||
| + | \return returns true if the object is valid, otherwise, return false | ||
| + | */ | ||
| + | | ||
| protected: | protected: | ||
| Linha 60: | Linha 84: | ||
| protected: | protected: | ||
| - | int myProtectedInt_; | + | //! My protected int member |
| + | | ||
| private: | private: | ||
| - | int myInt_; | + | //! My private int member |
| - | double myDouble_; | + | |
| - | std:: | + | //! My private double member |
| - | bool valid_; | + | |
| - | TeClass* myClassPointer_; | + | //! My private string member |
| + | | ||
| + | //! My private boolen member | ||
| + | | ||
| + | //! My private class pointer member | ||
| + | | ||
| }; | }; | ||
terralib/exemplo1.1206973298.txt.gz · Última modificação: 2008/03/31 14:21 por laercio
