Classes and structs are practically the same thing. Their only difference is the default visibility of their members.
"Array" means usually a block of memory that contain multiple objects. There are other "containers" too.
Your "databaseTable" is an object that contains a list of "database" objects (and possibly other data). Each database object has a name and a list of table objects.
Each table obviously has a name, and a list of records and a name for each field of record. Each record has fields.
and so on ...
Then, separately, there is a parser that reads user input and may call methods of objects (assuming that the input can be interpreted).
you are right. I'm using Qt and I need to create this type of class or structure for using as constants as I do not know what those values will be so I can not guess the db name or the table name.. but i need a class that can generate it and this is what i need. to retrieve the info as you just said.
"Your "databaseTable" is an object that contains a list of "database" objects (and possibly other data). Each database object has a name and a list of table objects.
Each table obviously has a name, and a list of records and a name for each field of record. Each record has fields.
and so on ..."
So.. I will need a class and make them objects?? can you give me a clue?
so the output of db.name will be a string or at QStringList (in Qt)
where db.getName("mainDb") will output >> myMainDB.db
the data will be stored into a sqlite database and I will read it from there. what I will need is like an template for this..
1 2
MyDbClass myDb;
myDb.getDbNames();
but how can I do it to work like this…
db("main").table
or
db("main").table("settings").fildsName
or
db("main").table("settings").fildsName("id")
can you help me too do such thing? how Qt is doing with QFile..
file.open() or like tableView.model.data(); how those different classes can be linked together? and to communicate…