/[marvin]/marvin/src/libsip/type/type.hh
ViewVC logotype

Diff of /marvin/src/libsip/type/type.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by exos, Thu Sep 11 05:00:21 2003 UTC revision 1.10 by exos, Thu Sep 11 22:45:21 2003 UTC
# Line 66  public: Line 66  public:
66   /** \name Ctor & dtor.                                                         /** \name Ctor & dtor.                                                      
67     ** \{ */     ** \{ */
68    
69    /** \brief Construct a new type of signal    /** \brief Construct a new abstract type
70       ** \param data: data witch represents signal in double
71       ** \param length: length of data, it's the number of double, be carefull, it should be allocated
72     */     */
   Type();  
   Type(double *data);  
73    Type(double *data, int length);    Type(double *data, int length);
74    /** \} */    /** \} */
75    
76    // Operations    // Operations
77    /** \name Operations    /** \name Operations
78     ** \{ */     ** \{ */
79    void set_signal(Signal *signal){ _signal = signal; }    
80    void operator = ( double *src );    /** \brief set the signal of type
81         ** \param signal is the new signal.
82       */
83      void set_signal(Signal *signal){ _signal = signal;}
84        
85    /** \brief display the signal contained in this    /** \brief display the signal contained in this
86     ** \param str where the signal shouild be print     ** \param str where the signal shouild be print
87     */     */
# Line 86  public: Line 89  public:
89    /** \} */    /** \} */
90    
91    
92    /** \name Accessors.                                                            /** \name Accessors.
93     ** \{ */     ** \{ */
94    Signal *get_signal() const            { return _signal; }    Signal *get_signal() const            { return _signal; }
95    double *get_data() const              { return _signal->get_data(); }    double *get_data() const              { return _signal->get_data(); }
# Line 103  public: Line 106  public:
106    /** \} */    /** \} */
107  };  };
108    
109    /** \brief Overload operator <<
110     */
111  std::ostream operator<<(std::ostream ostr, Type a);  std::ostream operator<<(std::ostream ostr, Type a);
112    
113    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26