Class upisnd::ElementName#
#include <name.h>
Public Functions#
| Type | Name |
|---|---|
| operator const char * () const Implicit conversion to const char *. |
|
| ElementName (const char * str) Implicit conversion from const char *, so plain strings can be used as ElementName argument in APIs. |
|
| ElementName (const ElementName & rhs) |
Public Static Functions#
| Type | Name |
|---|---|
| ElementName | regular (const char * name) Returns an ElementName initialized from the provided string. |
| ElementName | randomized (const char * prefix=NULL) |
| ElementName | formatted (const char * fmt, ...) Returns a formatted ElementName , following the printf() semantics. |
operator const char *#
Implicit conversion to const char *.
upisnd::ElementName::operator const char * () const
ElementName [1/3]#
Implicit conversion from const char *, so plain strings can be used as ElementName argument in APIs.
upisnd::ElementName::ElementName (
const char * str
)
ElementName [2/3]#
upisnd::ElementName::ElementName (
const ElementName & rhs
)
regular#
Returns an ElementName initialized from the provided string.
static ElementName upisnd::ElementName::regular (
const char * name
)
randomized#
static ElementName upisnd::ElementName::randomized (
const char * prefix=NULL
)
Returns a randomized ElementName. You may optionally specify a prefix to be prepended to the name.
See also: upisnd_generate_random_element_name
formatted#
Returns a formatted ElementName , following the printf() semantics.
static ElementName upisnd::ElementName::formatted (
const char * fmt,
...
)