Subversion Repositories tpanel

Rev

Rev 446 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 446 Rev 480
Line 343... Line 343...
343
             * and returns the content.
343
             * and returns the content.
344
             *
344
             *
345
             * @param name  The name of the wanted attribute.
345
             * @param name  The name of the wanted attribute.
346
             * @param attrs A vector list of attributes.
346
             * @param attrs A vector list of attributes.
347
             *
347
             *
-
 
348
             * @return On success returns TRUE or FALSE depending on the
-
 
349
             * content.
-
 
350
             */
-
 
351
            bool getAttributeBool(const std::string& name, std::vector<ATTRIBUTE_t>& attrs);
-
 
352
            /**
-
 
353
             * Searches in the attribute list of an attribute called \p name
-
 
354
             * and returns the content.
-
 
355
             *
-
 
356
             * @param name  The name of the wanted attribute.
-
 
357
             * @param attrs A vector list of attributes.
-
 
358
             *
348
             * @return On success returns the content of the attribute \p name
359
             * @return On success returns the content of the attribute \p name
349
             * as an integer value.
360
             * as an integer value.
350
             * Otherwise an error text is set (TError) and 0 is returned.
361
             * Otherwise an error text is set (TError) and 0 is returned.
351
             */
362
             */
352
            int getAttributeInt(const std::string& name, std::vector<ATTRIBUTE_t>& attrs);
363
            int getAttributeInt(const std::string& name, std::vector<ATTRIBUTE_t>& attrs);
Line 385... Line 396...
385
             * as a double precission floating value.
396
             * as a double precission floating value.
386
             * Otherwise an error text is set (TError) and 0 is returned.
397
             * Otherwise an error text is set (TError) and 0 is returned.
387
             */
398
             */
388
            double getAttributeDouble(const std::string& name, std::vector<ATTRIBUTE_t>& attrs);
399
            double getAttributeDouble(const std::string& name, std::vector<ATTRIBUTE_t>& attrs);
389
            /**
400
            /**
-
 
401
             * Converts a string into a boolean.
-
 
402
             *
-
 
403
             * @param content   A string containing numbers.
-
 
404
             * @return Returns the boolean value.
-
 
405
             */
-
 
406
            bool convertElementToBool(const std::string& content);
-
 
407
            /**
390
             * Converts a string into an integer value.
408
             * Converts a string into an integer value.
391
             *
409
             *
392
             * @param content   A string containing numbers.
410
             * @param content   A string containing numbers.
393
             * @return On success returns the value representation of the
411
             * @return On success returns the value representation of the
394
             * \p content. If not convertable, TError is set and 0 is returned.
412
             * \p content. If not convertable, TError is set and 0 is returned.