Re: libdar::user_interaction::listing splitting the flag argument

Denis Corbin <[email protected]> Fri, 25 Oct 2013 21:16:10 +0200
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24/10/2013 20:55, Tobias wrote:
> Hi Denis,

Hello Tobias,


>[...]
>  
> 
> I have another question.
> 
> I'm overwrite the listing method to get the output of get_children_of.
> 
> Is it possible to break up the "flag" argument into its components?

Well, I see that there is still room for improvement in this area since
the libdar/dar split at release 2.0.0.

In the current development libdar (GIT master) I've added the method

   archive::get_children_in_table(const std::string & dir) const

which returns a std::vector of objects of type libdar::list_entry.
The class list_entry provides all the necessary methods to know about
the entry of a given directory. This an much more simple alternative to
get_children_of() method that relies on user_interaction classes.

references:
	src/libdar/archive.hpp 	
	src/libdar/list_entry.hpp

As I cannot tell you when will take place the future major release of
dar/libdar (release 2.5.0) because there is still important feature to
add, I have back-ported this feature to the current stable code (GIT
branch_2.4.x) which will be released with next minor version of
dar/libdar (release 2.4.12) probably next January unless important bug
are found in dar/libdar implying a more sooner fix/release.

You can use this code from GIT branch_2.4.x. If you need to a tarball
tell me I will send it to you, no problem. But if you prefer you can
also read the USING_SOURCE_FROM_GIT at the root of the GIT tree on
branch_2.4.x.

> 
> Particularly I'm interested in the "saved" attribute, it is a localised
> string

the
	list_entry::has_data_present_in_the_archive()
	list_entry::is_dirty()

methods should answer your need.

> 
> and thus problematic to work with.
> 
> Is there another method implementing this feature?
> 

Now, Yes! :)

>  
> 
> Regards,
> 
> Tobias
> 
>  

Regards,
Denis.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIVAwUBUmrDeQgxsL0D2LGCAQK2xg/9EqVJS5X6INWybeJLuStFjIPhReeo3xRw
TU+Rb1gtqDdR94xEiYahBeHLPIUBTdcHxO2I4EiZ5AHK3KhQglTVQrHnSgkJA+qQ
2HRBIp29O3EIw8zWKKAFkjGP/hbG+kXiz6Vr2vXTSNNHWz8W9e3QVBk2PyY3dzg7
cv1VO35Pl/ivcSYGTUcMmoYrBZqxlQF2N7FcMvTmoI6o2ymxUVri+BvQsN6pqb3k
6PlN0Pm1p0ZChu8ClUWLQdXadS4FynM+CSbGcl4Z2GEN4xweP3ZsedAndMeJ4i+n
tg/I6OboYF+e3WWsml+1KWfvKCGrbP2pvI4TEceYJaNyd/ba9ulUmEDhVqiNTAv7
BbKfIn0zYcoN4afgvsTQYoZXThbipOXEMrB32arfDx02IpHY4WCp46YzC/UUQ6P/
jNQqM4crtzEvKv/HomNnD1PwScM/KbzxpUEHko89XVCpJXcpW2EJaR0UzYXyeDbj
DkAy1+xloK9fzXzLNkB0aDQLawWVVJ/THQ2bmGz58f3qPR53r6P1mqwdIyyavqDA
cbYx8gEN3m0sbN2Na/9bcSEAXJIyh5Ogt0W6FobqJu9AkMwWV3RQM7mi/vIwTVDy
OWgnCeS2zmsXrlRxQm1zNADiu98/NO9Co8OfvyBzNwxL3OgWDV7MoGkqQEiZcafQ
w6spvv3xNjA=
=ldub
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk