[GRASS-SVN] r52572 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 7 02:58:06 PDT 2012


Author: wenzeslaus
Date: 2012-08-07 02:58:05 -0700 (Tue, 07 Aug 2012)
New Revision: 52572

Modified:
   grass/trunk/lib/vector/Vlib/cats.c
Log:
vlib: dox

Modified: grass/trunk/lib/vector/Vlib/cats.c
===================================================================
--- grass/trunk/lib/vector/Vlib/cats.c	2012-08-06 21:38:21 UTC (rev 52571)
+++ grass/trunk/lib/vector/Vlib/cats.c	2012-08-07 09:58:05 UTC (rev 52572)
@@ -341,11 +341,29 @@
 
 
 /*!
-   \brief Convert string of categories and cat ranges separated by commas to cat_list.
+   \brief Converts string of categories and cat ranges separated by commas to cat_list.
 
-   Examples of string: 2,3,5-9,20. str - input string
+   \par Examples of string:
+   \verbatim
+   5,6,7
+   3-9
+   2,3,5-9,20\endverbatim
+   
+   \par Example:
+   \code
+   ...
+   str = "2,3,5-9,20"
+   catList = Vect_new_cat_list()
 
-   \param[in] str cat list string
+   Vect_str_to_cat_list(str, catList)
+   \endcode
+   \verbatim
+   catList.field = 0
+   catList.n_ranges = 4
+   catList.min = {2, 3, 5, 20}
+   catList.max = {2, 3, 9, 20}\endverbatim
+
+   \param[in] str category list as a string
    \param[out] list result cat_list structure
 
    \return number of errors in ranges



More information about the grass-commit mailing list