66 lines
1.5 KiB
C++
66 lines
1.5 KiB
C++
/*
|
|
File automatically generated by SOAdvancedDissector.py
|
|
More information at http://indefero.soutade.fr/p/soadvanceddissector
|
|
*/
|
|
|
|
#ifndef _META_H
|
|
#define _META_H
|
|
|
|
#include <uft.h>
|
|
#include <dp.h>
|
|
#include <mdom.h>
|
|
#include <dpdoc.h>
|
|
|
|
|
|
namespace meta {
|
|
|
|
class Entry;
|
|
class Metadata;
|
|
|
|
|
|
class Entry: public dpdoc::MetadataItem
|
|
{
|
|
public:
|
|
Entry(uft::String const&, uft::String const&);
|
|
Entry(uft::String const&, uft::String const&, uft::Dict const&);
|
|
|
|
virtual ~Entry();
|
|
virtual void addRef();
|
|
virtual void release();
|
|
virtual void getValue();
|
|
virtual void getAttribute(dp::String const&, dp::String const&);
|
|
|
|
void getEntryAttribute(uft::String const&, uft::String const&);
|
|
void staticInit();
|
|
|
|
void* s_descriptor;
|
|
|
|
};
|
|
|
|
class Metadata
|
|
{
|
|
public:
|
|
Metadata();
|
|
|
|
void addEntry(uft::sref<meta::Entry> const&);
|
|
void get(uft::String const&, unsigned int);
|
|
void getCount(uft::String const&);
|
|
void getMetadataItem(dp::String const&, int);
|
|
void getMetadataValue(dp::String const&, int);
|
|
void* operator new(unsigned int, uft::Value&);
|
|
void staticInit();
|
|
|
|
void* s_descriptor;
|
|
|
|
};
|
|
|
|
|
|
void collect(mdom::Node const&, uft::sref<meta::Metadata> const&);
|
|
void getMetadataElement(mdom::Node const&, unsigned int);
|
|
void readFrom(mdom::Node const&, uft::sref<meta::Metadata> const&);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _META_H
|