tizen beta release
[framework/web/wrt-installer.git] / src / configuration_parser / libiriwrapper.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.0 (the "License");
5  *    you may not use this file except in compliance with the License.
6  *    You may obtain a copy of the License at
7  *
8  *        http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *    Unless required by applicable law or agreed to in writing, software
11  *    distributed under the License is distributed on an "AS IS" BASIS,
12  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *    See the License for the specific language governing permissions and
14  *    limitations under the License.
15  */
16 /**
17  * @file        libiriwrapper.cpp
18  * @author      Piotr Marcinkiewicz (p.marcinkiew@samsung.com
19  * @version     0.1
20  * @brief       Libiri parser wrapper
21  */
22
23 #ifndef _WRT_ENGINE_SRC_INSTALLERCORE_CONFIGURATION_PARSER_LIBIRIWRAPPER_H_
24 #define _WRT_ENGINE_SRC_INSTALLERCORE_CONFIGURATION_PARSER_LIBIRIWRAPPER_H_
25
26 #include <iostream>
27 #include <iri.h>
28
29 //TODO: Design and implement new IRI manager class
30 //
31 namespace LibIri {
32 struct Wrapper
33 {
34     Wrapper(const char* aIri);
35     ~Wrapper();
36     iri_t *m_Iri;
37     //! \brief Returns true if iri is valid
38     bool Validate();
39 };
40
41 std::ostream & operator<<(std::ostream& a_stream,
42         const Wrapper& a_wrapper);
43 } //namespace LibIri
44
45 #endif // _WRT_ENGINE_SRC_INSTALLERCORE_CONFIGURATION_PARSER_LIBIRIWRAPPER_H_
46