LCOV - code coverage report
Current view: top level - as2js/lib - rc.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 1 1 100.0 %
Date: 2014-08-10 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : #ifndef AS2JS_RC_H
       2             : #define AS2JS_RC_H
       3             : /* rc.h -- written by Alexis WILKE for Made to Order Software Corp. (c) 2005-2014 */
       4             : 
       5             : /*
       6             : 
       7             : Copyright (c) 2005-2014 Made to Order Software Corp.
       8             : 
       9             : http://snapwebsites.org/project/as2js
      10             : 
      11             : Permission is hereby granted, free of charge, to any
      12             : person obtaining a copy of this software and
      13             : associated documentation files (the "Software"), to
      14             : deal in the Software without restriction, including
      15             : without limitation the rights to use, copy, modify,
      16             : merge, publish, distribute, sublicense, and/or sell
      17             : copies of the Software, and to permit persons to whom
      18             : the Software is furnished to do so, subject to the
      19             : following conditions:
      20             : 
      21             : The above copyright notice and this permission notice
      22             : shall be included in all copies or substantial
      23             : portions of the Software.
      24             : 
      25             : THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
      26             : ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
      27             : LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
      28             : FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
      29             : EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
      30             : LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
      31             : WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
      32             : ARISING FROM, OUT OF OR IN CONNECTION WITH THE
      33             : SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
      34             : SOFTWARE.
      35             : 
      36             : */
      37             : 
      38             : #include        "as2js/string.h"
      39             : 
      40             : #include    <fstream>
      41             : 
      42             : namespace as2js
      43             : {
      44             : 
      45             : // "Resources" support to load .rc files
      46          25 : class rc_t
      47             : {
      48             : public:
      49             :     void                    init_rc(bool const accept_if_missing);
      50             : 
      51             :     String const&           get_scripts() const;
      52             :     String const&           get_db() const;
      53             : 
      54             :     static String const&    get_home();
      55             : 
      56             : private:
      57             :     String                  f_scripts;
      58             :     String                  f_db;
      59             : };
      60             : 
      61             : 
      62             : }
      63             : // namespace as2js
      64             : 
      65             : #endif
      66             : // #ifndef AS2JS_RC_H
      67             : 
      68             : // vim: ts=4 sw=4 et

Generated by: LCOV version 1.9