/usr/include/arc/ArcConfigFile.h is in nordugrid-arc-dev 5.4.2-1build1.
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 | #ifndef __ARC_CONFIG_FILE_H__
#define __ARC_CONFIG_FILE_H__
#include <cstring>
#include <iostream>
#include <fstream>
#include <string>
#include <arc/XMLNode.h>
#include <arc/Logger.h>
namespace Arc {
class ConfigFile: public std::ifstream {
public:
/// Default constructor creates object not associated with file.
ConfigFile(void) { };
/// Constructor creates object associated with file located at path.
ConfigFile(const std::string &path) { open(path); };
/// Open/assign configuration file located at path to this object.
bool open(const std::string &path);
/// Closes configuration file.
bool close(void);
/// Read one line of configuration file.
/// Returns string containing whole line.
std::string read_line();
/// Helper function to read one line of configuration from provided stream.
static std::string read_line(std::istream& stream);
/// Recognizable configuration file types.
typedef enum {
file_XML,
file_INI,
file_unknown
} file_type;
/// Detect type of currently associated configuration file.
file_type detect(void);
};
} // namespace Arc
#endif // __ARC_CONFIG_FILE_H__
|