ArnLib  4.0.x
Active Registry Network
Arn.cpp File Reference

(4.0.0)

#include "ArnInc/Arn.hpp"
#include "ArnInc/ArnLib.hpp"
#include "ArnInc/ArnCompat.hpp"
#include <QUuid>
#include <QStringList>
Include dependency graph for Arn.cpp:

Go to the source code of this file.

Namespaces

 Arn
 

Functions

QString Arn::convertName (const QString &name, Arn::NameF nameF=Arn::NameF())
 Convert a name to a specific format. More...
 
QString Arn::fullPath (const QString &path)
 Convert a path to a full absolute path. More...
 
QString Arn::itemName (const QString &path)
 The last part of a path More...
 
QString Arn::childPath (const QString &parentPath, const QString &posterityPath)
 Get substring for child from a path (posterityPath) More...
 
QString Arn::changeBasePath (const QString &oldBasePath, const QString &newBasePath, const QString &path)
 Change the base (start) of a path. More...
 
QString Arn::makePath (const QString &parentPath, const QString &itemName)
 Make a path from a parent and an item name. More...
 
QString Arn::addPath (const QString &parentPath, const QString &childRelPath, Arn::NameF nameF=Arn::NameF::EmptyOk)
 Make a path from a parent and an additional relative path. More...
 
QString Arn::convertPath (const QString &path, Arn::NameF nameF=Arn::NameF::EmptyOk)
 Convert a path to a specific format. More...
 
QString Arn::parentPath (const QString &path)
 Get the parent to a given path More...
 
QString Arn::twinPath (const QString &path)
 Get the bidirectional twin to a given path More...
 
QString Arn::providerPathIf (const QString &path, bool giveProviderPath=true)
 Get provider path or requester path More...
 
bool Arn::isFolderPath (const QString &path)
 Test if path is a folder path More...
 
bool Arn::isProviderPath (const QString &path)
 Test if path is a provider path More...
 
QString Arn::uuidPath (const QString &path)
 Get a path to an Arn Object with a unique uuid name. More...
 
QString Arn::makeHostWithInfo (const QString &host, const QString &info)
 Make a combined host and info string, i.e. HostWithInfo More...
 
QString Arn::hostFromHostWithInfo (const QString &hostWithInfo)
 Get the host from the HostWithInfo string. More...
 
bool Arn::isNullPtr (const void *ptr)
 
uint Arn::rand ()
 

Variables

const QString Arn::pathLocal = "/Local/"
 
const QString Arn::pathLocalSys = "Sys/"
 
const QString Arn::pathDiscover = "Sys/Discover/"
 
const QString Arn::pathDiscoverThis = "Sys/Discover/This/"
 
const QString Arn::pathDiscoverConnect = "Sys/Discover/Connect/"
 
const QString Arn::pathServer = "Sys/Server/"
 
const QString Arn::pathServerSessions = "Sys/Server/Sessions/"