1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SCRIPTING_STORAGE_SCRIPTDATA_HXX_
25 #define _SCRIPTING_STORAGE_SCRIPTDATA_HXX_
26 
27 #include <vector>
28 #include <hash_map>
29 
30 #include <cppu/macros.hxx>
31 #include <rtl/ustring.hxx>
32 
33 
34 
35 namespace scripting_impl
36 {
37 
38 typedef ::std::pair< ::rtl::OUString, ::rtl::OUString > str_pair;
39 typedef ::std::vector< str_pair > props_vec;
40 typedef ::std::hash_map< ::rtl::OUString, props_vec, ::rtl::OUStringHash,
41     ::std::equal_to< ::rtl::OUString > > strpairvec_map;
42 typedef ::std::hash_map< ::rtl::OUString, ::std::pair< ::rtl::OUString,
43     ::rtl::OUString >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > strpair_map;
44 typedef ::std::hash_map< ::rtl::OUString, ::std::pair< props_vec, strpairvec_map >, ::rtl::OUStringHash, ::std::equal_to< ::rtl::OUString > > filesets_map;
45 
46 struct ScriptData
47 {
48 
ScriptData()49     inline ScriptData::ScriptData() SAL_THROW( () )
50        : parcelURI()
51        , language()
52        , locales()
53        , functionname()
54        , logicalname()
55        , languagedepprops()
56        , filesets()
57    {
58    }
59 
ScriptData(const::rtl::OUString __parcelURI,const::rtl::OUString & __language,const strpair_map & __locales,const::rtl::OUString & __functionname,const::rtl::OUString & __logicalname,const props_vec & __languagedepprops,const filesets_map & __filesets)60    inline ScriptData::ScriptData( const ::rtl::OUString __parcelURI,
61        const ::rtl::OUString& __language,
62        const strpair_map& __locales,
63        const ::rtl::OUString& __functionname,
64        const ::rtl::OUString& __logicalname,
65        const props_vec& __languagedepprops,
66        const filesets_map& __filesets ) SAL_THROW( () )
67        : parcelURI( __parcelURI )
68        , language( __language )
69        , locales( __locales )
70        , functionname( __functionname )
71        , logicalname( __logicalname )
72        , languagedepprops( __languagedepprops )
73        , filesets( __filesets )
74    {
75    }
76 
77    ::rtl::OUString parcelURI;
78    ::rtl::OUString language;
79    strpair_map locales;
80    ::rtl::OUString functionname;
81    ::rtl::OUString logicalname;
82    props_vec languagedepprops;
83    filesets_map filesets;
84 };
85 } // namespace scripting_impl
86 #endif // _SCRIPTING_STORAGE_ScriptData_HXX_
87 
88