This file is indexed.

/usr/include/openrpt/common/memdbloader.h is in libopenrpt-dev 3.3.12-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef MEMDBLOADER_H
#define MEMDBLOADER_H

#include <QStringList>
#include <QDomElement>
#include <QSqlDatabase>

class MemDbLoader 
{
public:
    MemDbLoader();
    ~MemDbLoader();

public:

	static QString createMemoryDB(QString id="");

    // Load the DB from a file
    bool load(const QString &filename, QSqlDatabase db);
    // Load the DB from a DomElement
    bool load(const QDomElement & elemSource, QSqlDatabase db);
    QString lastError() {return _lastError;}
    
private:
    // Parse the table infos
    void parseTable(const QDomElement & elemSource);
    void parseColumns(const QDomElement & elemSource);
    void parseRecord(const QDomElement & elemSource);
    
	QSqlDatabase _db;
    QString 	_lastError;
    QString 	_tableName;
    QStringList _columnNames;
    
};

#endif // MEMDBLOADER_H