DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
File.hpp File Reference
#include <string>
#include <vector>
#include <sys/types.h>
#include <sys/stat.h>
#include "okssystem/User.hpp"
Include dependency graph for File.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OksSystem::File
 Wrapper for file operations. More...
 

Namespaces

namespace  OksSystem
 

Functions

std::ostream & operator<< (std::ostream &stream, const OksSystem::File &file)
 
bool operator== (const OksSystem::File &a, const OksSystem::File &b) throw ()
 
bool operator!= (const OksSystem::File &a, const OksSystem::File &b) throw ()
 

Function Documentation

◆ operator!=()

bool operator!= ( const OksSystem::File & a,
const OksSystem::File & b )
throw ( )

Definition at line 861 of file File.cpp.

861 {
862 return ! a.equals(b);
863} // operator !=
bool equals(const File &other) const
compare two files *‍/
Definition File.cpp:347

◆ operator<<()

std::ostream & operator<< ( std::ostream & stream,
const OksSystem::File & file )

Stream a file object into a STL stream.

Parameters
streamdestination stream.
filethe file to write
Returns
the stream passed as parameter

Definition at line 852 of file File.cpp.

852 {
853 stream << OksSystem::File::FILE_PROTOCOL << ":/" << file.full_name();
854 return stream;
855} // operator<<
static const char *const FILE_PROTOCOL
string for the file protocol *‍/
Definition File.hpp:46

◆ operator==()

bool operator== ( const OksSystem::File & a,
const OksSystem::File & b )
throw ( )

Definition at line 857 of file File.cpp.

857 {
858 return a.equals(b);
859} // operator ==