/usr/include/falcon/srv/json_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 | /*
FALCON - The Falcon Programming Language.
FILE: json_srv.h
JSON Service module -- an interface to access the JSON module.
-------------------------------------------------------------------
Author: Giancarlo Niccolai
Begin: Sun, 27 Sep 2009 20:58:05 +0200
-------------------------------------------------------------------
(C) Copyright 2009: the FALCON developers (see list in AUTHORS file)
See LICENSE file for licensing details.
*/
#ifndef flc_json_srv_H
#define flc_json_srv_H
#include <falcon/setup.h>
#include <falcon/service.h>
#include <falcon/string.h>
#include <falcon/stream.h>
namespace Falcon
{
#define JSONSERVICE_NAME "JSONService"
/** Publishes the JSON converter service as "JSONService".
*
*/
class JSONService: public Service
{
public:
JSONService();
virtual bool encode( const Item& itm, String& tgt, bool bPretty=false, bool bReadale = false );
virtual bool encode( const Item& itm, Stream* tgt, bool bPretty=false, bool bReadale = false );
virtual bool decode( const String& str, Item& tgt );
virtual bool decode( Stream* source, Item& tgt );
};
}
#endif
/* end of json_srv.h */
|