Logo Search packages:      
Sourcecode: rapidsvn version File versions  Download package

PathPropertiesMapList svn::Client::propget ( const char *  propName,
const Path path,
const Revision revision,
bool  recurse = false 
)

lists one property in path no matter whether local or repository

Parameters:
propName 
path 
revision 
recurse 
Returns:
PathPropertiesMapList
lists properties in path no matter whether local or repository

Parameters:
path 
revision 
recurse 
Returns:
PropertiesList

Definition at line 108 of file client_property.cpp.

References svn::Path::c_str(), and svn::Revision::revision().

  {
    Pool pool;

    apr_hash_t *props;
    svn_error_t * error =
      svn_client_propget(&props,
                         propName,
                         path.c_str(),
                         revision.revision(),
                         recurse,
                         *m_context,
                         pool);
    if (error != NULL)
    {
      throw ClientException(error);
    }

    PathPropertiesMapList path_prop_map_list;


    apr_hash_index_t *hi;
    for (hi = apr_hash_first(pool, props); hi;
         hi = apr_hash_next(hi))
    {
      PropertiesMap prop_map;

      const void *key;
      void *val;

      apr_hash_this(hi, &key, NULL, &val);

      prop_map [std::string(propName)] = std::string(((const svn_string_t *)val)->data);

      path_prop_map_list.push_back(PathPropertiesMapEntry((const char *)key, prop_map));
    }

    return path_prop_map_list;
  }


Generated by  Doxygen 1.6.0   Back to index