Save registry as C++ code (it generates C++ class with the same functionality) and/or dependencies list.
More...
|
bool | AppendAddresses (const icomp::IRegistry ®istry, const QStringList ®istryPath, Addresses &realAddresses, Addresses &composedAddresses) const |
| Get component addresses used by given registry and its elements (recursively).
|
|
Ids | ExtractPackageIds (const Addresses &addresses) const |
|
Ids | ExtractComponentIds (const Addresses &addresses, const QByteArray &packageId) const |
|
bool | WriteHeader (const QByteArray &className, const icomp::IRegistry ®istry, const Addresses &composedAddresses, const Addresses &realAddresses, QTextStream &stream) const |
|
bool | WriteIncludes (const QByteArray &className, const Addresses &addresses, QTextStream &stream) const |
|
bool | WriteClassDefinitions (const QByteArray &className, const icomp::IRegistry ®istry, const Addresses &composedAddresses, const Addresses &realAddresses, QTextStream &stream) const |
|
bool | WriteDependencies (const Addresses &composedAddresses, const Addresses &realAddresses, bool singleLine, QTextStream &stream, const QDir *relativeDirPtr=nullptr) const |
|
bool | WriteRegistryInfo (const icomp::IRegistry ®istry, const QByteArray ®istryCallPrefix, QTextStream &stream) const |
|
bool | WriteComponentInfo (const icomp::IRegistry ®istry, const QByteArray ®istryCallPrefix, const QByteArray &elementName, const icomp::IRegistry::ElementInfo &componentInfo, QTextStream &stream) const |
|
bool | WriteAttribute (const QByteArray &attributeId, const QByteArray &componentId, const QByteArray &attributeName, const iser::IObject &attribute, QTextStream &stream) const |
|
bool | WriteRegistryTranslation (int level, const QByteArray &elementPath, const icomp::IRegistry ®istry, bool &translationFound, QSet< icomp::CComponentAddress > &processedComponents, QTextStream &stream) const |
| Write translation macro of all string attributes from registry.
|
|
bool | WriteComponentTranslation (int level, const QByteArray &elementPath, const icomp::IRegistry::ElementInfo &componentInfo, bool &translationFound, QTextStream &stream) const |
| Write translation macro of all string attributes from component.
|
|
bool | WriteRegistryClassDeclaration (const QByteArray &baseClassName, const QByteArray ®istryClassName, const icomp::IRegistry ®istry, QTextStream &stream) const |
|
bool | WriteRegistryClassBody (const QByteArray &baseClassName, const QByteArray ®istryClassName, const icomp::IRegistry ®istry, QTextStream &stream) const |
|
bool | WriteDeserializingCode (const iser::ISerializable &object, QTextStream &stream) const |
| Write code deserializing some object from data buffer.
|
|
bool | GetAttributeValue (const iser::ISerializable &attribute, QByteArray &valueString, QByteArray &typeName) const |
|
bool | GetMultiAttributeValue (const iser::ISerializable &attribute, QList< QByteArray > &valueStrings, QByteArray &typeName) const |
|
bool | NextLine (QTextStream &stream) const |
| Insert a new line and indentation tabs.
|
|
int | ChangeIndent (int difference) const |
|
bool | ExtractInfoFromFile (const QString &filePath, QByteArray &className, QString &baseFilePath) const |
| Extract class name and absolute header path from a file name.
|
|
QByteArray | GetPackageName (const QByteArray &packageId) const |
| Ensure that a package name ends with 'Pck'.
|
|
QByteArray | GetStringLiteral (const QString &text) const |
| Get some wide string as C++ string literal.
|
|
QByteArray | GetIdValueLiteral (const QByteArray &text) const |
| Get some string as C++ string literal.
|
|
QByteArray | GetValidIdentifier (const QByteArray &identifier) const |
| Get valid C++ identifier (used for variable names) from arbitrary string.
|
|
virtual void | DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override |
| Decorate message parts before outputting.
|
|
void | OnComponentCreated () override |
|
void | OnComponentDestroyed () override |
|
bool | IsVerboseEnabled () const |
| Check if verbose messages are enabled.
|
|
bool | SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const |
| Send verbose message.
|
|
bool | SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send info message to log.
|
|
bool | SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send warning message to log.
|
|
bool | SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send error message to log.
|
|
bool | SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send critical message to log.
|
|
bool | SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send once info message to log.
|
|
bool | SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send once warning message to log.
|
|
bool | SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send once error message to log.
|
|
bool | SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send once critical message to log.
|
|
bool | SendUserMessage (const istd::IInformationProvider *messagePtr) const |
| Send message with user object.
|
|
bool | AllowMessageOnceAgain (int id) |
| Reset message lock.
|
|
bool | IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const override |
| Check if any log message is consumed.
|
|
bool | SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const override |
| Send any message to log.
|
|
Save registry as C++ code (it generates C++ class with the same functionality) and/or dependencies list.
Definition at line 33 of file CRegistryCodeSaverComp.h.