QuickRank
v2.0
QuickRank: A C++ suite of Learning to Rank algorithms
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
utils
fileutils.h
Go to the documentation of this file.
1
/*
2
* QuickRank - A C++ suite of Learning to Rank algorithms
3
* Webpage: http://quickrank.isti.cnr.it/
4
* Contact: quickrank@isti.cnr.it
5
*
6
* Unless explicitly acquired and licensed from Licensor under another
7
* license, the contents of this file are subject to the Reciprocal Public
8
* License ("RPL") Version 1.5, or subsequent versions as allowed by the RPL,
9
* and You may not copy or use this file in either source code or executable
10
* form, except in compliance with the terms and conditions of the RPL.
11
*
12
* All software distributed under the RPL is provided strictly on an "AS
13
* IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND
14
* LICENSOR HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
15
* LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
16
* PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the RPL for specific
17
* language governing rights and limitations under the RPL.
18
*
19
* Contributor:
20
* HPC. Laboratory - ISTI - CNR - http://hpc.isti.cnr.it/
21
*/
22
#pragma once
23
24
#include <string>
25
#include <iostream>
26
#include <sys/stat.h>
27
28
inline
bool
file_exist
(
const
std::string &filename) {
29
struct
stat buffer;
30
return
(stat(filename.c_str(), &buffer) == 0);
31
}
file_exist
bool file_exist(const std::string &filename)
Definition:
fileutils.h:28
Generated on Thu Jul 21 2016 14:30:28 for QuickRank by
1.8.11