Rocket Division Software http://www.starburnsoftware.com/forum/ |
|
Looking for certain features http://www.starburnsoftware.com/forum/starburn-sdk-f3/looking-for-certain-features-t1959-30.html |
Page 3 of 5 |
Author: | flöle [ Tue Nov 02, 2010 7:56 pm ] |
Post subject: | Re: Looking for certain features |
*Sigh* Okay...what about replacing files in a UdfDataburner? There are "Add" methods, but Add will fail if the file exists. So I'd look for a remove...which is only located in the Files property. Fine for me, but how do I determine the index of the file to remove? Should I iterate over all existing files to find the index every time I want to replace a file? Seems horribly inefficient to me? |
Author: | anton (staff) [ Tue Nov 02, 2010 8:05 pm ] |
Post subject: | Re: Looking for certain features |
Need to check the code as we've dramatically re-worked UDF engine and completely replaced ISO with a new code. Tons of things were changed / added. |
Author: | dima (staff) [ Wed Nov 03, 2010 5:40 am ] |
Post subject: | Re: Looking for certain features |
Hello We will investigate this issue! Regards, Dmitry |
Author: | flöle [ Sat Nov 13, 2010 1:09 pm ] |
Post subject: | Re: Looking for certain features |
No news on how to replace files yet? |
Author: | anton (staff) [ Sat Nov 13, 2010 7:42 pm ] |
Post subject: | Re: Looking for certain features |
- Remove - Add We definitely can write a wrapper over these calls called - Replace but it's not there yet. |
Author: | flöle [ Sat Nov 13, 2010 8:22 pm ] |
Post subject: | Re: Looking for certain features |
Yes, but how to remove and add efficiently? |
Author: | anton (staff) [ Sat Nov 13, 2010 10:01 pm ] |
Post subject: | Re: Looking for certain features |
You should have some kind of a tree control in your app (if you allow your user to select/add/remove files). Keep reference pointer to file object you add and use it to remove. We'll overwrap the call with one call but it's not going to be faster b/c it's going to perform the same sequence of actions. |
Author: | deepakp [ Sat Dec 18, 2010 4:28 am ] |
Post subject: | Re: Looking for certain features |
flöle wrote: *Sigh* Okay...what about replacing files in a UdfDataburner? There are "Add" methods, but Add will fail if the file exists. So I'd look for a remove...which is only located in the Files property. Fine for me, but how do I determine the index of the file to remove? Should I iterate over all existing files to find the index every time I want to replace a file? Seems horribly inefficient to me? I thought I can help you Sir, as like you I am an user of StarBurnX, hence I am posting my opinion on your question. I think as you are adding files in a folder. So you have parentFolder as DataFolder and it's path with you. Next thing you need is filename, so what you can do is before adding each file you can query for filename in parentFolder like, ' Search the file object fileToDelete = parentFolder.GetFileObject(pathToSearch) It's your choice whether to delete existing file and add new one now. Do what you want here... And if you have deleted the file then add new file. Am I clear, Sir? Thank you. |
Author: | dima (staff) [ Thu Dec 30, 2010 10:35 am ] |
Post subject: | Re: Looking for certain features |
Hello, Yes, you are right! Thanx for your help! Regards, Dmitry |
Author: | flöle [ Thu Dec 30, 2010 2:57 pm ] |
Post subject: | Re: Looking for certain features |
deepakp wrote: ' Search the file object fileToDelete = parentFolder.GetFileObject(pathToSearch) And now what? I can't delete the file if I have a reference to it, as I need an index. I know how to do that, but doing it for all files of a folder is inefficient. |
Author: | dima (staff) [ Thu Dec 30, 2010 5:18 pm ] |
Post subject: | Re: Looking for certain features |
Hello, The DataFolder object provides the property Files which gives access to collection of child items ( files and folders). This collection provides the method Clear!! This collection provides also the method Remove, the type of input parameter is Variant so ... the passed value can be Index or File object. P.s. Look into the our examples DataBurner and UDFDataBurner Regards, Dmitry |
Author: | flöle [ Thu Dec 30, 2010 6:03 pm ] |
Post subject: | Re: Looking for certain features |
Nope, StarBurnX only exposes a single Remove method, only accepting an int. |
Author: | dima (staff) [ Thu Dec 30, 2010 6:21 pm ] |
Post subject: | Re: Looking for certain features |
Hmmm ... [ void Remove(object Index) - Member of RocketDivision.StarBurnX.IDataFiles] ... as you see the the Index parameter has type Object!! ) Regards, Dmitry |
Author: | flöle [ Thu Dec 30, 2010 7:27 pm ] |
Post subject: | Re: Looking for certain features |
Ah, I see, thanks. Guess I focused too much on the parameter name. Will try it. |
Author: | dima (staff) [ Thu Dec 30, 2010 7:44 pm ] |
Post subject: | Re: Looking for certain features |
Excellent!! P.s. do not forget to look into the our samples Regards, Dmitry |
Page 3 of 5 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |