marDictFrase Class Reference

#include <marDictionary.h>

List of all members.

Public Member Functions

 marDictFrase (int id, char *frase)
 ~marDictFrase ()
int GetIdFrase ()
char * GetFrase ()

Private Attributes

int _idfrase
char * _frase

Detailed Description

Definition at line 9 of file marDictionary.h.


Constructor & Destructor Documentation

marDictFrase::marDictFrase ( int  id,
char *  frase 
)

Definition at line 10 of file marDictionary.cxx.

References _frase, and _idfrase.

00010                                                 {
00011   _idfrase       = idfrase;
00012   _frase=(char*)malloc(strlen(frase));
00013   memcpy( _frase , frase , strlen(frase));
00014   _frase[strlen(frase)-1]='\0';
00015 }

marDictFrase::~marDictFrase (  ) 

Definition at line 18 of file marDictionary.cxx.

References _frase.

00018                            {
00019         free(_frase);
00020 }


Member Function Documentation

char * marDictFrase::GetFrase (  ) 

Definition at line 28 of file marDictionary.cxx.

References _frase.

Referenced by marDictionary::GetString().

00028                             {
00029         return _frase;
00030 }

Here is the caller graph for this function:

int marDictFrase::GetIdFrase (  ) 

Definition at line 23 of file marDictionary.cxx.

References _idfrase.

Referenced by marDictionary::GetString().

00023                             {
00024         return _idfrase;
00025 }

Here is the caller graph for this function:


Member Data Documentation

char* marDictFrase::_frase [private]

Definition at line 17 of file marDictionary.h.

Referenced by GetFrase(), marDictFrase(), and ~marDictFrase().

int marDictFrase::_idfrase [private]

Definition at line 16 of file marDictionary.h.

Referenced by GetIdFrase(), and marDictFrase().


The documentation for this class was generated from the following files:

Generated on 18 Mar 2010 for creaMaracasVisu_lib by  doxygen 1.6.1