OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::GraphicsItemLoader Class Reference

The GraphicsItemLoader may be used to import a GraphicsItemCfg from a file. The imported configuration(s) will be cached. More...

#include "GraphicsItemLoader.h"

Public Member Functions

bool addSearchPath (const QString &_path)
 Adds the provided path to the search paths list if valid. Before adding the path the string will be checked that it contains an existing path. The search path should end with a '/' (The suffix will be forced).
 
const std::list< QString > & getSearchPaths (void) const
 Returns the search paths.
 
GraphicsItemCfgcreateConfiguration (const QString &_subPath)
 Imports and caches the specified GraphicsItemCfg. The first existing search path + sub path combination will be used.
 

Static Public Member Functions

static GraphicsItemLoaderinstance (void)
 Returns the global instance.
 

Private Member Functions

virtual ~GraphicsItemLoader ()
 Private destructor.
 

Detailed Description

The GraphicsItemLoader may be used to import a GraphicsItemCfg from a file. The imported configuration(s) will be cached.

Member Function Documentation

◆ addSearchPath()

bool ot::GraphicsItemLoader::addSearchPath ( const QString & _path)

Adds the provided path to the search paths list if valid. Before adding the path the string will be checked that it contains an existing path. The search path should end with a '/' (The suffix will be forced).

Parameters
_pathSearch path to add.

◆ createConfiguration()

ot::GraphicsItemCfg * ot::GraphicsItemLoader::createConfiguration ( const QString & _subPath)

Imports and caches the specified GraphicsItemCfg. The first existing search path + sub path combination will be used.

◆ getSearchPaths()

const std::list< QString > & ot::GraphicsItemLoader::getSearchPaths ( void ) const
inline

Returns the search paths.

◆ instance()

ot::GraphicsItemLoader & ot::GraphicsItemLoader::instance ( void )
static

Returns the global instance.

◆ ~GraphicsItemLoader()

ot::GraphicsItemLoader::~GraphicsItemLoader ( )
privatevirtual

Private destructor.


The documentation for this class was generated from the following files: