text: #ifndef DATABASE_H
  #define DATABASE_H
  
  #include "FW/tools.h"
  
  class TypeDatabase : public TypeVariant
  {
  
  public:
  
      TypeDatabase( TypeVariant* Parent = 0 );
      ~TypeDatabase() override;
  
      bool                OpenDatabase( QString file_name );
      void                CloseDatabase();
      QString             GetDatabaseName();
      void                CreateTable( QString class_name, QStringList field_list );
      void                RemoveTable( QString class_name );
      void                AppendRecord( QString class_name, QStringList value_list );
      void                RemoveRecord( QString class_name, QString field, QString value );
      bool                TableExists( QString class_name );
      bool                RecordExists( QString class_name, QString field, QString value );
      QStringList         GetRecord( QString class_name, QString field, QString value );
      int                 RowCount( QString class_name );
  };
  
  #endif // DATABASE_H
  