LibrePCB Developers Documentation
elementname.h File Reference
#include "../exceptions.h"
#include "../qtcompat.h"
#include "../serialization/sexpression.h"
#include "../utils/toolbox.h"
#include <optional/tl/optional.hpp>
#include <type_safe/constrained_type.hpp>
#include <QtCore>
+ Include dependency graph for elementname.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ElementNameVerifier
 
struct  ElementNameConstraint
 

Namespaces

namespace  librepcb
 

Typedefs

using ElementName = type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier >
 

Functions

bool operator== (const ElementName &lhs, const QString &rhs) noexcept
 
bool operator== (const QString &lhs, const ElementName &rhs) noexcept
 
bool operator!= (const ElementName &lhs, const QString &rhs) noexcept
 
bool operator!= (const QString &lhs, const ElementName &rhs) noexcept
 
QString operator% (const ElementName &lhs, const QString &rhs) noexcept
 
QString operator% (const QString &lhs, const ElementName &rhs) noexcept
 
ElementName operator% (const ElementName &lhs, const ElementName &rhs) noexcept
 
template<>
std::unique_ptr< SExpression > serialize (const ElementName &obj)
 
template<>
ElementName deserialize (const SExpression &node)
 
template<>
std::unique_ptr< SExpression > serialize (const tl::optional< ElementName > &obj)
 
template<>
tl::optional< ElementName > deserialize (const SExpression &node)
 
QDataStream & operator<< (QDataStream &stream, const ElementName &obj)
 
QDebug operator<< (QDebug stream, const ElementName &obj)
 
QtCompat::Hash qHash (const ElementName &key, QtCompat::Hash seed=0) noexcept
 
static QString cleanElementName (const QString &userInput) noexcept
 
static ElementName elementNameFromTr (const char *context, const char *textNoTr) noexcept