TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Synonyme_info Class Reference

Models synonym information for Objet_U objects. More...

#include <Synonyme_info.h>

Public Member Functions

 Synonyme_info ()
 ~Synonyme_info ()
 Synonyme_info (const char *name, const char *org)
 Constructor from a name and an array of parent classes.
const char * org_name_ () const
const char * nom () const

Static Public Member Functions

static Sortiehierarchie (Sortie &)
 Writes the entire hierarchy of the considered synonym to an output stream.
static int est_un_synonyme (const char *)
 Tests whether a class synonym exists: if there is a class T whose Synonyme_info has.
static const Synonyme_infosynonyme_info_from_name (const char *synonyme_name)
 Static method that returns a pointer to the Synonyme_info whose name is "synonyme_name".
static void ajouter_synonyme (const Synonyme_info &synonyme_info)
 Static method called by Synonyme_info constructors to add a new synonym to the list of registered synonyms.

Detailed Description

Models synonym information for Objet_U objects.

See also
Objet_U Nom

Definition at line 39 of file Synonyme_info.h.

Constructor & Destructor Documentation

◆ Synonyme_info() [1/2]

Synonyme_info::Synonyme_info ( )
inline

Definition at line 42 of file Synonyme_info.h.

◆ ~Synonyme_info()

Synonyme_info::~Synonyme_info ( )

Definition at line 59 of file Synonyme_info.cpp.

◆ Synonyme_info() [2/2]

Synonyme_info::Synonyme_info ( const char * un_nom,
const char * org_name )

Constructor from a name and an array of parent classes.

Parameters
(constchar* nom) the name of the synonym to create
(intnb_base) the number of parent classes in the bases[] array
(constSynonyme_info* bases[]) the array specifying the base synonyms (parents) of the synonym to create
Exceptions
Exitson error if the name is not defined (null)

Definition at line 117 of file Synonyme_info.cpp.

Member Function Documentation

◆ ajouter_synonyme()

void Synonyme_info::ajouter_synonyme ( const Synonyme_info & synonyme_info)
static

Static method called by Synonyme_info constructors to add a new synonym to the list of registered synonyms.

Verifies that the synonym name does not already exist.

Definition at line 159 of file Synonyme_info.cpp.

◆ est_un_synonyme()

int Synonyme_info::est_un_synonyme ( const char * nom)
static

Tests whether a class synonym exists: if there is a class T whose Synonyme_info has.

the name "nom", then est_un_synonyme returns 1,
returns null pointer otherwise.
Parameters
(constchar* nom) character string associated with a synonym
Returns
(int) return code (0 or 1)

Definition at line 221 of file Synonyme_info.cpp.

◆ hierarchie()

Sortie & Synonyme_info::hierarchie ( Sortie & os)
static

Writes the entire hierarchy of the considered synonym to an output stream.

Parameters
(Sortie&os) output stream
Returns
(Sortie&) the modified output stream

Definition at line 204 of file Synonyme_info.cpp.

◆ nom()

const char * Synonyme_info::nom ( ) const
inline

Definition at line 47 of file Synonyme_info.h.

◆ org_name_()

const char * Synonyme_info::org_name_ ( ) const
inline

Definition at line 46 of file Synonyme_info.h.

◆ synonyme_info_from_name()

const Synonyme_info * Synonyme_info::synonyme_info_from_name ( const char * synonyme_name)
static

Static method that returns a pointer to the Synonyme_info whose name is "synonyme_name".

If synonyme_name is not a synonym, returns a null pointer.

Definition at line 233 of file Synonyme_info.cpp.


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