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