26 #ifndef CASATOOLS_CONFIG_STATE_H
27 #define CASATOOLS_CONFIG_STATE_H
49 virtual std::list<std::string>
dataPath( )
const {
60 std::list<std::string> existing_paths;
64 std::copy_if( new_list.begin( ), new_list.end( ), std::back_inserter(existing_paths),
65 [&s]( std::string d ) {
66 return (stat(d.c_str( ),&s) == 0) && (s.st_mode & S_IFDIR);
78 [ ](
const std::string &f ) {
79 char *expanded = realpath(f.c_str( ), NULL);
80 std::string result( expanded ? expanded :
"" );
91 ServiceId addService( std::string proposed_id, std::string uri,
const std::list<std::string> &types ) {
Base class for application state.
transform(a.begin(), a.end(), std::ostream_iterator< int >(cout,"\n"), compose(unary(h), compose(unary(f), unary(f))))
Global Functions.