CCIMXDesktop
 
Loading...
Searching...
No Matches
ImageCore Class Reference

ImageCore indicates the basic image core utils, by providing the loadable image path. More...

#include <ImageCore.h>

Public Types

enum class  ErrorType { NOTHING_THEN , IMAGEREQ_OVERFLOW , IMAGEREQ_UNDERFLOW }
 The ErrorType enum. More...
 

Public Member Functions

 ImageCore ()=default
 ImageCore.
 
void enImages (const QStringList &l)
 enImages input images
 
void removeImages (const QStringList &what)
 removeImages remove images
 
std::optional< QString > peek (const int index)
 peek get the index to and fetch result
 
ErrorType errorType () const
 errorType get the errorType
 
int size () const
 size get the image size
 
bool empty () const
 empty check if empty now
 
void clear ()
 clear clears up the holdings
 
int index (const QString &path)
 fetch the index of holding path
 

Detailed Description

ImageCore indicates the basic image core utils, by providing the loadable image path.

Member Enumeration Documentation

◆ ErrorType

enum class ImageCore::ErrorType
strong

The ErrorType enum.

Enumerator
NOTHING_THEN 

OK.

IMAGEREQ_OVERFLOW 

overflow request

IMAGEREQ_UNDERFLOW 

underflow request

Member Function Documentation

◆ empty()

bool ImageCore::empty ( ) const
inline

empty check if empty now

Returns
is empty?

◆ enImages()

void ImageCore::enImages ( const QStringList &  l)
inline

enImages input images

Parameters
lthe images

◆ errorType()

ErrorType ImageCore::errorType ( ) const
inline

errorType get the errorType

Returns
errorType

◆ index()

int ImageCore::index ( const QString &  path)
inline

fetch the index of holding path

Parameters
path
Returns
int

◆ peek()

std::optional< QString > ImageCore::peek ( const int  index)

peek get the index to and fetch result

Parameters
indexindex query index
Returns
possible path
Note
if failed, you need to query the errorType to see the details

◆ removeImages()

void ImageCore::removeImages ( const QStringList &  what)

removeImages remove images

Parameters
what

◆ size()

int ImageCore::size ( ) const
inline

size get the image size

Returns
image size

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