A small object manager
Posted: Sun Jan 25, 2009 11:53 am
Hello,
I'm writing a small object manager and I need some help. I've added a couple of features but I think that there are some vital ones missing. Here is a short list:
already programmed
my wish list^^
It's simple. You give the class object a path to a file and then you can easily pump objects into the class without looking after formatting the file. Later you can access the objects through an index function or sort the objects. I know that I should use a database for something like that but in my opinion that would be too much overhead.
Could you give me some hints on how I can improve my class?
I want to get rid of the input and output streams and use a stream which can do both at the same time like wxFileStream but like I said, I don't know how to write a wxString properly.
I'm writing a small object manager and I need some help. I've added a couple of features but I think that there are some vital ones missing. Here is a short list:
already programmed
- -writing and reading objects
-handling the object index
-moving objects
my wish list^^
- -writing wxString-objects
-checking free harddrive space
-checking file system
-getting the current time and date and save in the file
-using other classes for the class
It's simple. You give the class object a path to a file and then you can easily pump objects into the class without looking after formatting the file. Later you can access the objects through an index function or sort the objects. I know that I should use a database for something like that but in my opinion that would be too much overhead.
Could you give me some hints on how I can improve my class?
I want to get rid of the input and output streams and use a stream which can do both at the same time like wxFileStream but like I said, I don't know how to write a wxString properly.