/[resiprocate]/main/rutil/test/testFileSystem.cxx
ViewVC logotype

Contents of /main/rutil/test/testFileSystem.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5934 - (show annotations) (download)
Thu Feb 16 23:58:28 2006 UTC (13 years, 8 months ago) by dworley
File MIME type: text/plain
File size: 2734 byte(s)
Start cleaning up svn:mime-type in files.

1 #include "rutil/FileSystem.hxx"
2 #include <iostream>
3
4 using namespace resip;
5 using namespace std;
6
7 int
8 main()
9 {
10 #ifdef WIN32
11 FileSystem::Directory dir("c:\\windows\\");
12 #else
13 FileSystem::Directory dir("/usr/bin/");
14 #endif
15 for (FileSystem::Directory::iterator it = dir.begin(); it != dir.end(); ++it)
16 {
17 cerr << *it << endl;
18 }
19 return 0;
20 }
21
22 /* ====================================================================
23 * The Vovida Software License, Version 1.0
24 *
25 * Copyright (c) 2005 Vovida Networks, Inc. All rights reserved.
26 *
27 * Redistribution and use in source and binary forms, with or without
28 * modification, are permitted provided that the following conditions
29 * are met:
30 *
31 * 1. Redistributions of source code must retain the above copyright
32 * notice, this list of conditions and the following disclaimer.
33 *
34 * 2. Redistributions in binary form must reproduce the above copyright
35 * notice, this list of conditions and the following disclaimer in
36 * the documentation and/or other materials provided with the
37 * distribution.
38 *
39 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
40 * and "Vovida Open Communication Application Library (VOCAL)" must
41 * not be used to endorse or promote products derived from this
42 * software without prior written permission. For written
43 * permission, please contact vocal@vovida.org.
44 *
45 * 4. Products derived from this software may not be called "VOCAL", nor
46 * may "VOCAL" appear in their name, without prior written
47 * permission of Vovida Networks, Inc.
48 *
49 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
50 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
51 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
52 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
53 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
54 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
55 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
56 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
57 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
58 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
59 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
60 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
61 * DAMAGE.
62 *
63 * ====================================================================
64 *
65 * This software consists of voluntary contributions made by Vovida
66 * Networks, Inc. and many individuals on behalf of Vovida Networks,
67 * Inc. For more information on Vovida Networks, Inc., please see
68 * <http://www.vovida.org/>.
69 *
70 */

Properties

Name Value
svn:eol-style native
svn:mime-type text/plain

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27