ProteoWizard
Main Page
Namespaces
Classes
Files
File List
File Members
pwiz
data
vendor_readers
Waters
Reader_Waters_Test.cpp
Go to the documentation of this file.
1
//
2
// $Id: Reader_Waters_Test.cpp 4129 2012-11-20 00:05:37Z chambm $
3
//
4
//
5
// Original author: Matt Chambers <matt.chambers .@. vanderbilt.edu>
6
//
7
// Copyright 2008 Vanderbilt University - Nashville, TN 37232
8
//
9
// Licensed under the Apache License, Version 2.0 (the "License");
10
// you may not use this file except in compliance with the License.
11
// You may obtain a copy of the License at
12
//
13
// http://www.apache.org/licenses/LICENSE-2.0
14
//
15
// Unless required by applicable law or agreed to in writing, software
16
// distributed under the License is distributed on an "AS IS" BASIS,
17
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
// See the License for the specific language governing permissions and
19
// limitations under the License.
20
//
21
22
23
#include "
pwiz/utility/misc/unit.hpp
"
24
#include "
Reader_Waters.hpp
"
25
#include "
pwiz/utility/misc/VendorReaderTestHarness.hpp
"
26
#include "
pwiz/utility/misc/Filesystem.hpp
"
27
#include "
pwiz/utility/misc/Std.hpp
"
28
29
struct
IsRawData
:
public
pwiz::util::TestPathPredicate
30
{
31
bool
operator()
(
const
string
& rawpath)
const
32
{
33
return
bfs::is_directory(rawpath) &&
34
bal::to_lower_copy(
BFS_STRING
(bfs::path(rawpath).extension())) ==
".raw"
;
35
}
36
};
37
38
int
main
(
int
argc,
char
* argv[])
39
{
40
TEST_PROLOG
(argc, argv)
41
42
#ifdef PWIZ_READER_WATERS
43
const
bool
testAcceptOnly =
false
;
44
#else
45
const
bool
testAcceptOnly =
true
;
46
#endif
47
48
try
49
{
50
pwiz::util::testReader
(
pwiz::msdata::Reader_Waters
(), testArgs, testAcceptOnly,
IsRawData
());
51
}
52
catch
(exception&
e
)
53
{
54
TEST_FAILED
(e.what())
55
}
56
catch
(...)
57
{
58
TEST_FAILED
(
"Caught unknown exception."
)
59
}
60
61
TEST_EPILOG
62
}
Generated on Mon Nov 26 2012 18:05:49 for ProteoWizard by
1.8.1.1