Ananas Library 0.9.5
aCManifest Class Reference
Inheritance diagram for aCManifest:

Classes

struct  record

Public Member Functions

virtual void create ()
virtual QString toString ()
virtual bool write (const QString &fname)
virtual bool read (const QString &fname)
virtual void clear ()
virtual bool isValid ()
virtual aCManifest::record first ()
virtual aCManifest::record next ()
virtual bool isExists (const QString &fname)
virtual bool addEntry (const QString &fname, int type)
virtual bool removeEntry (const QString &fname, bool withChilds)
virtual QString lastError () const

Member Function Documentation

◆ addEntry()

bool aCManifest::addEntry ( const QString & fname,
int type )
virtual

Add new entry to manifest.

Parameters
fname- file name to add
type- type of entry.
Returns
true if success

mf_metadata=0, mf_template, mf_dir, mf_script, mf_form, mf_picture, mf_other=100

References isValid().

◆ clear()

void aCManifest::clear ( )
virtual

Clear manifest content.

◆ create()

void aCManifest::create ( )
virtual

Create new empty manifest.

◆ first()

aCManifest::record aCManifest::first ( )
virtual
Returns
first manifest record

References isValid().

◆ isExists()

bool aCManifest::isExists ( const QString & fname)
virtual

I don't remember for what need this function

Parameters
fname- file name

References isValid().

◆ isValid()

bool aCManifest::isValid ( )
virtual

Check manifest.

Returns
true if manifest is valid

References aLog::print().

Referenced by addEntry(), first(), isExists(), next(), and removeEntry().

◆ lastError()

QString aCManifest::lastError ( ) const
virtual
Returns
last error text

◆ next()

aCManifest::record aCManifest::next ( )
virtual
Returns
next manifest record

References isValid().

◆ read()

bool aCManifest::read ( const QString & fname)
virtual

Read manifest from file.

Parameters
fname- file name to read
Returns
true if success

References aLog::print().

Referenced by aContainer::extractManifest().

◆ removeEntry()

bool aCManifest::removeEntry ( const QString & fname,
bool withChilds )
virtual

Remove entry from manifest.

Parameters
fname- file name to remove
withChilds- remove childs node too or not
Returns
true if success

References isValid().

◆ toString()

QString aCManifest::toString ( )
virtual
Returns
manifest as string

◆ write()

bool aCManifest::write ( const QString & fname)
virtual

Store manifest to file

Returns
true if success

References aLog::print().


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