Id type for classes An Id must only contain alpha numerical characters and must begin with a letter.
More...
#include <Id.h>
Id type for classes An Id must only contain alpha numerical characters and must begin with a letter.
omni::Id::Id |
( |
QString const & |
_str | ) |
|
Constructor from string.
void make(QString const &)
Make Id from string.
Definition: Id.cpp:72
omni::Id::Id |
( |
const char * |
_c | ) |
|
Constructor from const char*.
void make(QString const &)
Make Id from string.
Definition: Id.cpp:72
void omni::Id::make |
( |
QString const & |
_str | ) |
|
|
private |
Make Id from string.
76 if (_str.isEmpty())
return;
79 if (!_str[0].isLetter())
return;
85 if (!c.isLetterOrNumber() && (!c.isPunct()))
return;
QString str_
Internal string buffer.
Definition: Id.h:68
omni::Id::operator QString |
( |
| ) |
const |
Cast operator returns copy of string representation.
QString str_
Internal string buffer.
Definition: Id.h:68
bool omni::Id::operator!= |
( |
const Id & |
_rhs | ) |
const |
Returns true if two ids do not match.
64 return !(*
this == _rhs);
bool omni::Id::operator< |
( |
const Id & |
_rhs | ) |
const |
Comparison operator.
59 return this->
str_ < _rhs.str_;
QString str_
Internal string buffer.
Definition: Id.h:68
bool omni::Id::operator== |
( |
const Id & |
_rhs | ) |
const |
Returns true if two ids match.
69 return this->
str_ == _rhs.str_;
QString str_
Internal string buffer.
Definition: Id.h:68
QString const & omni::Id::str |
( |
| ) |
const |
Returns string representation (const)
QString str_
Internal string buffer.
Definition: Id.h:68
bool omni::Id::valid |
( |
| ) |
const |
Returns true if string is valid.
54 return !
str_.isEmpty();
QString str_
Internal string buffer.
Definition: Id.h:68
The documentation for this struct was generated from the following files: