32 Declare_instanciable_sans_constructeur_ni_destructeur(
Nom);
39 Nom(
const std::string& nom);
43 Nom(
double le_reel,
const char* format);
46 operator const char*()
const;
69 virtual int find(
const char*
const n)
const;
70 virtual int debute_par(
const char*
const n)
const;
71 virtual int finit_par(
const char*
const n)
const;
73 int find(
const std::string& n)
const;
88 std::size_t found =
nom_.find(nom.
nom_);
89 return found!=std::string::npos;
~Nom() override
Destructor.
const char * getChar() const
Nom()
Default constructor. Creates the string "??".
virtual int finit_par(const char *const n) const
Nom substr_old(const int, const int) const
Returns a name using the usual substr command. NOTE: deb = 1 means the first character of the string.
int est_egal_a(const Objet_U &) const override
Comparison with an Objet_U. The Objet_U is cast to Nom for the comparison.
const Nom getPrefix(const char *const) const
Nom & operator=(const char *const)
Copies the string nom.
bool contient(const Nom &nom) const
friend bool operator<(const Nom &, const Nom &)
Nom nom_me(int, const char *prefix=0, int without_padding=0) const
Inserts _prefix000n (n=me() or nproc()) into a file name (e.g. toto.titi) to produce toto_prefix000n....
const Nom getSuffix(const char *const) const
virtual int debute_par(const char *const n) const
virtual int find(const char *const n) const
Nom & operator+=(const Nom &x)
Concatenation with a Nom.
int longueur() const
Returns the number of characters in the Nom string, including the null terminator.
friend int operator==(const Nom &, const char *const)
Compares a name with a character string using strcmp.
std::string & getString()
Nom & prefix(const char *const)
Nom & majuscule()
Converts the name to uppercase. Only letters 'a'-'z' are modified.
Nom operator+(const Nom &) const
Concatenation with a Nom.
Nom & suffix(const char *const)
Suffix extraction: Nom x("azerty");.
Nom basename() const
Returns the filename part if the name is in the form /toto/titi/filename.
const std::string & getString() const
const Nom & le_nom() const override
Returns *this.
friend int operator!=(const Nom &, const char *)
Compares a name with a character string.
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...