/usr/include/pbcopper/data/MovieName.h is in libpbcopper-dev 0.0.1+20161202-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | #ifndef PBCOPPER_DATA_MOVIENAME_H
#define PBCOPPER_DATA_MOVIENAME_H
#include "pbcopper/Config.h"
#include <boost/utility/string_ref.hpp>
#include <iosfwd>
#include <memory>
#include <string>
namespace PacBio {
namespace Data {
/// \brief The MovieName class provides methods for working with PacBio movie
/// names.
class MovieName
{
public:
/// \name Constructors & Related Methods
/// \{
// create MovieName from string
explicit MovieName(const std::string& name);
explicit MovieName(std::string&& name);
// create MovieName from name parts
MovieName(const std::string& instrumentName,
const std::string& runStartTime);
MovieName(void);
MovieName(const MovieName& other);
MovieName(MovieName&& other) noexcept;
MovieName& operator=(const MovieName& other);
MovieName& operator=(MovieName&& other) noexcept;
~MovieName(void);
/// \}
public:
/// \name Name Parts
/// \{
boost::string_ref InstrumentName(void) const;
boost::string_ref RunStartTime(void) const;
/// \}
public:
/// \name Additional Methods & Operators
/// \{
std::string ToStdString(void) const;
/// \}
private:
std::string movieName_;
struct PartsCache;
mutable std::unique_ptr<PartsCache> partsCache_;
private:
void UpdatePartsCache(void) const;
};
/// \name Related Non-members
/// \{
// comparison operators
inline bool operator==(const MovieName& lhs, const MovieName& rhs);
inline bool operator!=(const MovieName& lhs, const MovieName& rhs);
inline bool operator<(const MovieName& lhs, const MovieName& rhs);
// I/O
inline std::ostream& operator<<(std::ostream& os, const MovieName& movieName);
inline std::istream& operator>>(std::istream& is, MovieName& movieName);
/// \}
} // namespace Data
} // namespace PacBio
#include "internal/MovieName-inl.h"
#endif // PBCOPPER_DATA_MOVIENAME_H
|