Ferramentas do usuário

Ferramentas do site


terralib:exemplo1

Diferenças

Aqui você vê as diferenças entre duas revisões dessa página.

Link para esta página de comparações

Ambos lados da revisão anteriorRevisão anterior
Próxima revisão
Revisão anterior
terralib:exemplo1 [2008/04/02 15:46] 150.163.3.123terralib:exemplo1 [2008/04/02 15:59] (atual) 150.163.3.123
Linha 45: 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.  
 +      
 +  \version (?) 
 +  \author (?) 
 +  \sa
 */ */
 class TeTemplate class TeTemplate
 { {
   public:   public:
-  +     
- /** \brief Set the value of member myInt_ +    //! Empty contructor 
-     \param myInt the value to be assigned to myInt_ +    TeTemplate(void);    
- *+
- void setMyInt(const int& myInt);+
  
- /** \brief Get the value of member myInt_ +    //! Set the value of member myInt_ 
-     \return the value to be assigned to myInt_ +    /*!  
- */ +      \param myInt the value to be assigned to myInt_ member 
- const int& getMyInt(const;+    */ 
 +    void setMyInt(const int& myInt);
  
- 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 
 +    */ 
 +    const bool& isValid() const;
  
   protected:   protected:
Linha 69: Linha 84:
  
   protected:   protected:
- int myProtectedInt_;+    //! My protected int member 
 +    int myProtectedInt_;
  
   private:   private:
- int myInt_; +    //! My private int member 
- double myDouble_; +    int myInt_; 
- std::string myString_; +    //! My private double member 
- bool valid_; +    double myDouble_; 
- TeClass* myClassPointer_; +    //! My private string member 
 +    std::string myString_; 
 +    //! My private boolen member 
 +    bool valid_; 
 +   //! My private class pointer member 
 +    TeClass* myClassPointer_;
 }; };
  
terralib/exemplo1.1207151198.txt.gz · Última modificação: 2008/04/02 15:46 por 150.163.3.123