LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
elementname.h File Reference
#include "fileio/sexpression.h"
#include "toolbox.h"
#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

 librepcb
 

Typedefs

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

Functions

static QString cleanElementName (const QString &userInput) noexcept
 
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<>
SExpression serializeToSExpression (const ElementName &obj)
 
template<>
ElementName deserializeFromSExpression (const SExpression &sexpr, bool throwIfEmpty)
 
QDataStream & operator<< (QDataStream &stream, const ElementName &obj)
 
QDebug operator<< (QDebug stream, const ElementName &obj)
 
uint qHash (const ElementName &key, uint seed=0) noexcept