Roxen.git / server / etc / modules / PropertySet.pike

version» Context lines:

Roxen.git/server/etc/modules/PropertySet.pike:1:   //! Contains methods for querying and setting of properties for a   //! resource.   //!   //! This default implementation takes care of the most important RFC   //! 2518 properties for ordinary files and directories in read-only   //! mode.   //!   //! Objects of this class are usually created through - //! @[RoxenModule()->query_properties()]. + //! @[RoxenModule.query_property_set].      #include <roxen.h>      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)   #else /* !DAV_DEBUG */   #define DAV_WERROR(X...)   #endif /* DAV_DEBUG */      //! Filesystem-relative path for which these properties apply.   string path;      //! Absolute path for which these properties apply.   string abs_path;      //! The current request.   RequestID id;      //! Create a new property set.   //! - //! Usually called via @[query_properties()]. + //! Usually called via @[RoxenModule.query_propery_set].   protected void create(string path, string abs_path, RequestID id)   {    global::path = path;    global::abs_path = abs_path;    global::id = id;       ASSERT_IF_DEBUG(has_prefix(abs_path, "/") && has_suffix(abs_path, path));   }      //! @decl protected void destroy();