|
ProteoWizard
|
Namespaces | |
| namespace | Base64 |
| Base-64 binary->text encoding (maps 3 bytes <-> 4 chars) | |
| namespace | env |
Classes | |
| class | BinaryData |
| A custom vector class that can store its contents in either a std::vector or a cli::array (when compiled with .NET). More... | |
| struct | CharIndexedVector |
| a wrapper for boost::array that is indexable by character; supports indexes 0-127 More... | |
| class | CharIndexedVectorConstIterator |
| a const_iterator for CharIndexedVector More... | |
| class | CharIndexedVectorIterator |
| an iterator for CharIndexedVector More... | |
| class | ClickwrapPrompter |
| a barrier to force end users to agree/disagree to a prompt before continuing More... | |
| class | DefaultTabHandler |
| class | Image |
| wrapper class for using 'gd' graphics library More... | |
| class | IntegerSet |
| a virtual container of integers, accessible via an iterator interface, stored as union of intervals More... | |
| class | IterationListener |
| interface to be implemented by clients who want progress callbacks More... | |
| class | IterationListenerRegistry |
| handles registration of IterationListeners and broadcast of update messages More... | |
| class | Lock |
| class | mru_list |
| class | MSIHandler |
| struct | once_flag_proxy |
| class | random_access_compressed_ifstream |
| struct | ReaderTestConfig |
| class | SHA1_ostream |
| ostream filter for calculating a SHA-1 hash of data on the fly More... | |
| class | SHA1Calculator |
| class | SHA1Filter |
| model of boost::iostreams::Filter More... | |
| class | SHA1SymmetricFilter |
| model of boost::iostreams::SymmetricFilter More... | |
| class | shared_map |
| copy semantics of shared_ptr<map<K,V> > with a std::map interface More... | |
| struct | TabHandler |
| class | TabReader |
| struct | TestPathPredicate |
| test implementations derive from this to define which paths should be tested More... | |
| class | Timer |
| class | usage_exception |
| class | user_error |
| class | VectorTabHandler |
| class | virtual_map |
| a wrapper for std::map that will behave properly with polymorphism More... | |
Typedefs | |
| typedef boost::shared_ptr< IterationListener > | IterationListenerPtr |
| typedef boost::iostreams::stream_offset | random_access_compressed_ifstream_off_t |
Enumerations | |
| enum | ByteSizeAbbreviation { ByteSizeAbbreviation_IEC , ByteSizeAbbreviation_JEDEC , ByteSizeAbbreviation_SI } |
Functions | |
| template<typename float_type > | |
| bool | almost_equal (float_type a, float_type b, int multiplier=1) |
| std::string | ToStdString (System::String^ source) |
| System::String | ToSystemString (const std::string &source, bool utf8=true) |
| template<typename managed_value_type , typename native_value_type > | |
| void | ToStdVector (cli::array< managed_value_type >^ managedArray, std::vector< native_value_type > &stdVector) |
| template<typename managed_value_type > | |
| void | ToStdVector (cli::array< managed_value_type >^ managedArray, std::vector< std::string > &stdVector) |
| template<typename native_value_type , typename managed_value_type > | |
| std::vector< native_value_type > | ToStdVector (cli::array< managed_value_type >^ managedArray) |
| template<typename managed_value_type , typename native_value_type > | |
| void | ToStdVector (cli::array< managed_value_type >^ managedArray, int sourceIndex, std::vector< native_value_type > &stdVector, int destinationIndex, int count) |
| template<typename managed_value_type , typename native_value_type > | |
| void | ToStdVector (System::Collections::Generic::IList< managed_value_type >^ managedList, std::vector< native_value_type > &stdVector) |
| template<typename managed_value_type , typename native_value_type > | |
| void | ToAutomationVector (cli::array< managed_value_type >^ managedArray, automation_vector< native_value_type > &automationArray) |
| wraps a managed array in an automation_vector to enable direct access from unmanaged code | |
| template<typename managed_value_type , typename native_value_type > | |
| void | ToBinaryData (cli::array< managed_value_type >^ managedArray, BinaryData< native_value_type > &binaryData) |
| template<typename managed_value_type , typename native_value_type > | |
| void | ToBinaryData (cli::array< managed_value_type >^ managedArray, int sourceIndex, BinaryData< native_value_type > &binaryData, int destinationIndex, int count) |
| template<typename managed_value_type , typename native_value_type > | |
| void | ToBinaryData (System::Collections::Generic::IList< managed_value_type >^ managedList, BinaryData< native_value_type > &binaryData) |
| std::string | format_date_time (const std::string &format, const bpt::ptime &t) |
| formats a boost ptime according to a custom format string | |
| std::string | format_date_time (const std::string &format, const blt::local_date_time &t) |
| formats a boost local_date_time according to a custom format string | |
| std::string | format_date_time (const std::string &format, const bpt::time_duration &t) |
| formats a boost time duration according to a custom format string | |
| blt::local_date_time | parse_date_time (const std::string &format, const std::string &t) |
| converts a custom formatted datetime string to a boost local_date_time | |
| std::string | encode_xml_datetime (const bpt::ptime &t) |
| returns a string representation suitable for an xsd:datetime attribute; input is assumed to be UTC time; output string is UTC time (as denoted by the 'Z' suffix) | |
| std::string | encode_xml_datetime (const blt::local_date_time &t) |
| returns a string representation suitable for an xsd:datetime attribute; time zone is assumed to be correct; output string is UTC time (as denoted by the 'Z' suffix) | |
| blt::local_date_time | decode_xml_datetime (const std::string &t) |
| converts an xsd:datetime attribute to a local_date_time | |
| BOOST_STATIC_ASSERT (sizeof(unsigned int)==4) | |
| BOOST_STATIC_ASSERT (sizeof(unsigned long long)==8) | |
| unsigned int | endianize32 (unsigned int n) |
| unsigned long long | endianize64 (unsigned long long n) |
| PWIZ_API_DECL void | force_close_handles_to_filepath (const std::string &filepath, bool closeMemoryMappedSections=false) noexcept(true) |
| on Windows, closes all file handles and memory mapped sections relating to the given filepath | |
| PWIZ_API_DECL int | expand_pathmask (const bfs::path &pathmask, vector< bfs::path > &matchingPaths) |
| expands (aka globs) a pathmask to zero or more matching paths and returns the number of matching paths | |
| PWIZ_API_DECL void | copy_directory (const bfs::path &from, const bfs::path &to, bool recursive=true, boost::system::error_code *ec=0) |
| if recursive is true, then copies "from" and all its contents to "to"; if "to" already exists or the copy fails for another reason, the error is reported in one of two ways: | |
| PWIZ_API_DECL std::string | abbreviate_byte_size (boost::uintmax_t byteSize, ByteSizeAbbreviation abbreviationType=ByteSizeAbbreviation_SI) |
| abbreviates a byte size (file or RAM) as a readable string, using the specified notation | |
| PWIZ_API_DECL bool | isHTTP (const std::string &filepath) |
| PWIZ_API_DECL std::string | read_file_header (const std::string &filepath, size_t length=512) |
| PWIZ_API_DECL std::pair< int, int > | get_console_bounds (const std::pair< int, int > &defaultBounds=std::pair< int, int >(80, 24)) |
| attempts to get the platform-specific console bounds (number of columns and lines), returns defaultBounds if an error occurs or the platform is not supported | |
| Image::Point | operator+ (const Image::Point &a, const Image::Point &b) |
| Image::Point | operator- (const Image::Point &a, const Image::Point &b) |
| template<typename SequenceT > | |
| std::string | longestCommonPrefix (const SequenceT &strings) |
| std::string | unit_assert_message (const char *filename, int line, const char *expression) |
| std::string | unit_assert_equal_message (const char *filename, int line, const std::string &x, const std::string &y, const char *expression) |
| std::string | unit_assert_numeric_equal_message (const char *filename, int line, double x, double y, double epsilon) |
| std::string | unit_assert_exception_message (const char *filename, int line, const char *expression, const std::string &exception) |
| std::string | quote_string (const string &str) |
| std::string | escape_teamcity_string (const std::string &str) |
| PWIZ_API_DECL int | testReader (const pwiz::msdata::Reader &reader, const std::vector< std::string > &args, bool testAcceptOnly, bool requireUnicodeSupport, const TestPathPredicate &isPathTestable, const ReaderTestConfig &config=ReaderTestConfig()) |
| A common test harness for vendor readers;. | |
Variables | |
| static once_flag_proxy | init_once_flag_proxy = {BOOST_ONCE_INIT} |
| this proxy class can be used for initializing per-instance once_flag_proxy(s) | |
| typedef boost::shared_ptr<IterationListener> pwiz::util::IterationListenerPtr |
Definition at line 61 of file IterationListener.hpp.
| typedef boost::iostreams::stream_offset pwiz::util::random_access_compressed_ifstream_off_t |
Definition at line 78 of file random_access_compressed_ifstream.hpp.
Definition at line 90 of file Filesystem.hpp.
| bool pwiz::util::almost_equal | ( | float_type | a, |
| float_type | b, | ||
| int | multiplier = 1 |
||
| ) |
Definition at line 37 of file almost_equal.hpp.
Referenced by test_default_double(), test_default_float(), and test_multiplier().
|
inline |
Definition at line 50 of file cpp_cli_utilities.hpp.
Referenced by ToStdVector().
|
inline |
Definition at line 66 of file cpp_cli_utilities.hpp.
| void pwiz::util::ToStdVector | ( | cli::array< managed_value_type >^ | managedArray, |
| std::vector< native_value_type > & | stdVector | ||
| ) |
Definition at line 82 of file cpp_cli_utilities.hpp.
Referenced by ToStdVector().
| void pwiz::util::ToStdVector | ( | cli::array< managed_value_type >^ | managedArray, |
| std::vector< std::string > & | stdVector | ||
| ) |
Definition at line 95 of file cpp_cli_utilities.hpp.
References ToStdString().
| std::vector< native_value_type > pwiz::util::ToStdVector | ( | cli::array< managed_value_type >^ | managedArray | ) |
Definition at line 108 of file cpp_cli_utilities.hpp.
References ToStdVector().
| void pwiz::util::ToStdVector | ( | cli::array< managed_value_type >^ | managedArray, |
| int | sourceIndex, | ||
| std::vector< native_value_type > & | stdVector, | ||
| int | destinationIndex, | ||
| int | count | ||
| ) |
Definition at line 117 of file cpp_cli_utilities.hpp.
| void pwiz::util::ToStdVector | ( | System::Collections::Generic::IList< managed_value_type >^ | managedList, |
| std::vector< native_value_type > & | stdVector | ||
| ) |
Definition at line 130 of file cpp_cli_utilities.hpp.
| void pwiz::util::ToAutomationVector | ( | cli::array< managed_value_type >^ | managedArray, |
| automation_vector< native_value_type > & | automationArray | ||
| ) |
wraps a managed array in an automation_vector to enable direct access from unmanaged code
Definition at line 144 of file cpp_cli_utilities.hpp.
| void pwiz::util::ToBinaryData | ( | cli::array< managed_value_type >^ | managedArray, |
| BinaryData< native_value_type > & | binaryData | ||
| ) |
Definition at line 155 of file cpp_cli_utilities.hpp.
References ToBinaryData().
Referenced by ToBinaryData().
| void pwiz::util::ToBinaryData | ( | cli::array< managed_value_type >^ | managedArray, |
| int | sourceIndex, | ||
| BinaryData< native_value_type > & | binaryData, | ||
| int | destinationIndex, | ||
| int | count | ||
| ) |
Definition at line 170 of file cpp_cli_utilities.hpp.
References pwiz::util::BinaryData< T >::assign(), and pwiz::util::BinaryData< T >::clear().
| void pwiz::util::ToBinaryData | ( | System::Collections::Generic::IList< managed_value_type >^ | managedList, |
| BinaryData< native_value_type > & | binaryData | ||
| ) |
Definition at line 183 of file cpp_cli_utilities.hpp.
References pwiz::util::BinaryData< T >::clear(), pwiz::util::BinaryData< T >::push_back(), and pwiz::util::BinaryData< T >::reserve().
|
inline |
formats a boost ptime according to a custom format string
Definition at line 81 of file DateTime.hpp.
Referenced by encode_xml_datetime(), test_format_date_time(), and test_parse_date_time().
|
inline |
formats a boost local_date_time according to a custom format string
Definition at line 92 of file DateTime.hpp.
|
inline |
formats a boost time duration according to a custom format string
Definition at line 103 of file DateTime.hpp.
|
inline |
converts a custom formatted datetime string to a boost local_date_time
Definition at line 114 of file DateTime.hpp.
Referenced by test_parse_date_time().
|
inline |
returns a string representation suitable for an xsd:datetime attribute; input is assumed to be UTC time; output string is UTC time (as denoted by the 'Z' suffix)
Definition at line 130 of file DateTime.hpp.
References format_date_time().
Referenced by encode_xml_datetime(), and test_xml_datetime().
|
inline |
returns a string representation suitable for an xsd:datetime attribute; time zone is assumed to be correct; output string is UTC time (as denoted by the 'Z' suffix)
Definition at line 140 of file DateTime.hpp.
References encode_xml_datetime().
|
inline |
converts an xsd:datetime attribute to a local_date_time
Definition at line 148 of file DateTime.hpp.
Referenced by test_xml_datetime().
| pwiz::util::BOOST_STATIC_ASSERT | ( | sizeof(unsigned int) | = =4 | ) |
| pwiz::util::BOOST_STATIC_ASSERT | ( | sizeof(unsigned long long) | = =8 | ) |
|
inline |
Definition at line 74 of file endian.hpp.
Referenced by test().
|
inline |
Definition at line 80 of file endian.hpp.
Referenced by test().
|
noexcept |
on Windows, closes all file handles and memory mapped sections relating to the given filepath
| PWIZ_API_DECL int pwiz::util::expand_pathmask | ( | const bfs::path & | pathmask, |
| vector< bfs::path > & | matchingPaths | ||
| ) |
expands (aka globs) a pathmask to zero or more matching paths and returns the number of matching paths
Referenced by cleanTests(), Is_T2D_Directory::operator()(), and testExpandPathmask().
| PWIZ_API_DECL void pwiz::util::copy_directory | ( | const bfs::path & | from, |
| const bfs::path & | to, | ||
| bool | recursive = true, |
||
| boost::system::error_code * | ec = 0 |
||
| ) |
if recursive is true, then copies "from" and all its contents to "to"; if "to" already exists or the copy fails for another reason, the error is reported in one of two ways:
| PWIZ_API_DECL std::string pwiz::util::abbreviate_byte_size | ( | boost::uintmax_t | byteSize, |
| ByteSizeAbbreviation | abbreviationType = ByteSizeAbbreviation_SI |
||
| ) |
abbreviates a byte size (file or RAM) as a readable string, using the specified notation
Referenced by testAbbreviateByteSize().
| PWIZ_API_DECL bool pwiz::util::isHTTP | ( | const std::string & | filepath | ) |
| PWIZ_API_DECL std::string pwiz::util::read_file_header | ( | const std::string & | filepath, |
| size_t | length = 512 |
||
| ) |
| PWIZ_API_DECL std::pair< int, int > pwiz::util::get_console_bounds | ( | const std::pair< int, int > & | defaultBounds = std::pair< int, int >(80, 24) | ) |
attempts to get the platform-specific console bounds (number of columns and lines), returns defaultBounds if an error occurs or the platform is not supported
|
inline |
Definition at line 105 of file Image.hpp.
References pwiz::util::Image::Point::x, and pwiz::util::Image::Point::y.
|
inline |
Definition at line 111 of file Image.hpp.
References pwiz::util::Image::Point::x, and pwiz::util::Image::Point::y.
| std::string pwiz::util::longestCommonPrefix | ( | const SequenceT & | strings | ) |
Definition at line 58 of file String.hpp.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 145 of file unit.hpp.
| PWIZ_API_DECL int pwiz::util::testReader | ( | const pwiz::msdata::Reader & | reader, |
| const std::vector< std::string > & | args, | ||
| bool | testAcceptOnly, | ||
| bool | requireUnicodeSupport, | ||
| const TestPathPredicate & | isPathTestable, | ||
| const ReaderTestConfig & | config = ReaderTestConfig() |
||
| ) |
A common test harness for vendor readers;.
Referenced by main().
|
static |