xref: /aoo42x/main/sot/workben/testsot.cxx (revision 046d9d1f)
1*046d9d1fSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*046d9d1fSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*046d9d1fSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*046d9d1fSAndrew Rist  * distributed with this work for additional information
6*046d9d1fSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*046d9d1fSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*046d9d1fSAndrew Rist  * "License"); you may not use this file except in compliance
9*046d9d1fSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*046d9d1fSAndrew Rist  *
11*046d9d1fSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*046d9d1fSAndrew Rist  *
13*046d9d1fSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*046d9d1fSAndrew Rist  * software distributed under the License is distributed on an
15*046d9d1fSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*046d9d1fSAndrew Rist  * KIND, either express or implied.  See the License for the
17*046d9d1fSAndrew Rist  * specific language governing permissions and limitations
18*046d9d1fSAndrew Rist  * under the License.
19*046d9d1fSAndrew Rist  *
20*046d9d1fSAndrew Rist  *************************************************************/
21*046d9d1fSAndrew Rist 
22*046d9d1fSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sot.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <sot/storage.hxx>
28cdf0e10cSrcweir 
29cdf0e10cSrcweir /*
30cdf0e10cSrcweir  * main.
31cdf0e10cSrcweir  */
main(int argc,sal_Char ** argv)32cdf0e10cSrcweir int main (int argc, sal_Char **argv)
33cdf0e10cSrcweir {
34cdf0e10cSrcweir  	SotStorageRef xStor = new SotStorage( "c:\\temp\\65254.ppt" );
35cdf0e10cSrcweir /*
36cdf0e10cSrcweir 	SotStorageRef xStor = new SotStorage( "c:\\temp\\video.sdb" );
37cdf0e10cSrcweir 	SotStorageRef xStor = new SotStorage( "c:\\temp\\video.sdb" );
38cdf0e10cSrcweir 	SotStorageRef x2Stor = xStor->OpenSotStorage( "1117" );
39cdf0e10cSrcweir 
40cdf0e10cSrcweir 	SotStorageStreamRef xStm = x2Stor->OpenSotStream( "Genres", STREAM_STD_READWRITE | STREAM_TRUNC);
41cdf0e10cSrcweir 	//BYTE szData[100];
42cdf0e10cSrcweir 	//xStm->Write( szData, 100 );
43cdf0e10cSrcweir 	UINT32 nSize = xStm->GetSize();
44cdf0e10cSrcweir 	xStm->SetSize( 0 );
45cdf0e10cSrcweir 	nSize = xStm->GetSize();
46cdf0e10cSrcweir 	x2Stor->Commit();
47cdf0e10cSrcweir 	xStor->Commit();
48cdf0e10cSrcweir */
49cdf0e10cSrcweir 	return 0;
50cdf0e10cSrcweir }
51cdf0e10cSrcweir 
52