2017-07-21 18:21:34 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the QSkinny License, Version 1.0
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef DOX_DUMPER_H
|
|
|
|
#define DOX_DUMPER_H
|
|
|
|
|
|
|
|
#include "Interface.h"
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
class DoxDumper
|
|
|
|
{
|
2019-01-07 09:13:53 +01:00
|
|
|
public:
|
2017-07-21 18:21:34 +02:00
|
|
|
DoxDumper();
|
|
|
|
int dump( const Interface&, FILE* );
|
|
|
|
|
|
|
|
int dumpCpp( const Interface&, FILE* );
|
|
|
|
int dumpQml( const Interface&, FILE* );
|
|
|
|
|
2019-01-07 09:13:53 +01:00
|
|
|
private:
|
2017-07-21 18:21:34 +02:00
|
|
|
void doxPrintf( const char* format, ... );
|
|
|
|
|
|
|
|
std::string expandedText(
|
|
|
|
const Interface&, const std::string& ) const;
|
|
|
|
|
|
|
|
std::string expandedTextQml(
|
|
|
|
const Interface&, const std::string& ) const;
|
|
|
|
|
|
|
|
std::vector< std::string > accessors( const Property& ) const;
|
|
|
|
std::string accessorsAsString( const Property& ) const;
|
|
|
|
|
|
|
|
FILE* m_file;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|