/usr/include/falcon/srv/confparser_srv.h is in falconpl-dev 0.9.6.9-git20120606-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /*
FALCON - The Falcon Programming Language.
FILE: confparser_srv.h
Configuration parser module -- module service classes
-------------------------------------------------------------------
Author: Giancarlo Niccolai
Begin: Mon, 22 Feb 2010 20:38:39 +0100
-------------------------------------------------------------------
(C) Copyright 2010: the FALCON developers (see list in AUTHORS file)
See LICENSE file for licensing details.
*/
#ifndef flc_confparser_srv_H
#define flc_confparser_srv_H
#include <falcon/service.h>
#include <falcon/string.h>
#define CONFIGFILESERVICE_NAME "ConfigFile"
namespace Falcon {
class ConfigFile;
class ConfigFileService: public Service
{
public:
ConfigFileService();
virtual ~ConfigFileService();
virtual bool initialize( const String &fileName, const String &encoding );
virtual void encoding( const String &encoding );
virtual const String &encoding() const;
virtual bool load();
virtual bool load( Stream *input );
virtual bool save();
virtual bool save( Stream *output );
virtual const String &errorMessage() const;
virtual long fsError() const;
virtual uint32 errorLine() const;
virtual bool getValue( const String &key, String &value ) ;
virtual bool getValue( const String §ion, const String &key, String &value );
virtual bool getNextValue( String &value );
virtual bool getFirstSection( String §ion );
virtual bool getNextSection( String &nextSection );
virtual bool getFirstKey( const String &prefix, String &key );
/** Adds an empty section (at the bottom of the file).
\return the newly created section, or 0 if the section is already declared.
*/
virtual void addSection( const String §ion );
virtual bool getFirstKey( const String §ion, const String &prefix, String &key );
virtual bool getNextKey( String &key );
virtual void setValue( const String &key, String &value ) ;
virtual void setValue( const String §ion, const String &key, const String &value );
virtual void addValue( const String &key, const String &value );
virtual void addValue( const String §ion, const String &key, String value );
virtual bool removeValue( const String &key );
virtual bool removeValue( const String §ion, const String &key );
virtual bool removeCategory( const String &category );
virtual bool removeCategory( const String §ion, const String &category );
virtual bool removeSection( const String &key );
virtual void clearMainSection();
private:
class ConfigFile *m_pCf;
};
}
#endif
/* end of confparser_srv.h */
|