/* _ * dtata.cpp * Copyright (C) 2023 Leonardo de Araújo Lima * * dstorage is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * dstorage is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #include "sdata.h" #include #include #include #include using namespace std; // sdata::sdata(){ cout << "class constructor >>" << endl; }; // int sdata::add_data( const char *n , const char* d) { iname.push_back(n); idata.push_back(d); nitens++; cout << "número de membros de dados: " << nitens << endl; return 0; }; // int sdata::citens(){ cout << "número de dados armazenados: " << iname.size() << endl; return 0; }; // int sdata::show() { cout << "Informações." << endl; for (int i=0; i < (nitens); i++) { if (debug == 1) { cout << "informações sobre o membros de dados: " << i << endl; }; cout << iname.at(i) << " : " << idata.at(i) << endl; }; cout << "### --- ###" << endl; return 0; }; // void sdata::set_db(const char *name) { dbn = name; }; // void sdata::set_tb(const char *name) { tbn = name; }; // void sdata::set_dpath(const char *path) { dpath = path; }; // int sdata::dbinfo() { cout << "informações sobre o banco de dados. \n" << "#----#" << endl; cout << "Path: " << dpath << endl; cout << "Banco de dados: " << dbn << endl; cout << "Tabela: " <