libdballe  6.8
db/v6/repinfo.h
1 /*
2  * db/v6/repinfo - repinfo table management
3  *
4  * Copyright (C) 2005--2013 ARPA-SIM <urpsim@smr.arpa.emr.it>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * Author: Enrico Zini <enrico@enricozini.com>
20  */
21 
22 #ifndef DBALLE_DB_V6_REPINFO_H
23 #define DBALLE_DB_V6_REPINFO_H
24 
25 #include <dballe/db/v5/repinfo.h>
26 
27 namespace dballe {
28 namespace db {
29 namespace v6 {
30 
31 class Repinfo : public v5::Repinfo
32 {
33 public:
35 
37  virtual int id_use_count(unsigned id, const char* name);
38 };
39 
40 
41 }
42 }
43 }
44 
45 #endif
Definition: db/v6/repinfo.h:31
Connection * conn
DB connection.
Definition: db/v5/repinfo.h:107
Fast cached access to the repinfo table.
Definition: db/v5/repinfo.h:94
Database connection.
Definition: internals.h:124
Definition: cmdline.h:34
Repinfo table management used by the db module.
virtual int id_use_count(unsigned id, const char *name)
Return how many time this ID is used in the database.