OmniSciDB  c07336695a
CommandHistoryFile.h File Reference
#include <iostream>
#include <string>
#include <utility>
#include <pwd.h>
#include <sys/types.h>
#include <unistd.h>
#include "Shared/ConfigResolve.h"
+ Include dependency graph for CommandHistoryFile.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DefaultEnvResolver
 
class  CommandHistoryFileImpl< ENV_RESOLVER >
 

Typedefs

using CommandHistoryFile = CommandHistoryFileImpl< DefaultEnvResolver >
 

Functions

constexpr char const *const getDefaultHistoryFilename ()
 
template<typename ENV_RESOLVER >
std::ostream & operator<< (std::ostream &o, CommandHistoryFileImpl< ENV_RESOLVER > const &cmd_file)
 
template<typename ENV_RESOLVER >
std::istream & operator>> (std::istream &i, CommandHistoryFileImpl< ENV_RESOLVER > &cmd_file)
 

Typedef Documentation

◆ CommandHistoryFile

Function Documentation

◆ getDefaultHistoryFilename()

constexpr char const* const getDefaultHistoryFilename ( )
inline

Definition at line 30 of file CommandHistoryFile.h.

Referenced by CommandHistoryFileImpl< ENV_RESOLVER >::resolveCommandFile(), and TEST().

30  {
31  return ".omnisql_history";
32 }
+ Here is the caller graph for this function:

◆ operator<<()

template<typename ENV_RESOLVER >
std::ostream& operator<< ( std::ostream &  o,
CommandHistoryFileImpl< ENV_RESOLVER > const &  cmd_file 
)
inline

Definition at line 90 of file CommandHistoryFile.h.

References CommandHistoryFileImpl< ENV_RESOLVER >::command_file_name_.

Referenced by CommandHistoryFileImpl< ENV_RESOLVER >::operator char const *().

91  {
92  o << cmd_file.command_file_name_;
93  return o;
94 }
+ Here is the caller graph for this function:

◆ operator>>()

template<typename ENV_RESOLVER >
std::istream& operator>> ( std::istream &  i,
CommandHistoryFileImpl< ENV_RESOLVER > &  cmd_file 
)
inline

Definition at line 97 of file CommandHistoryFile.h.

References CommandHistoryFileImpl< ENV_RESOLVER >::command_file_name_.

Referenced by CommandHistoryFileImpl< ENV_RESOLVER >::operator char const *().

98  {
99  i >> cmd_file.command_file_name_;
100  return i;
101 }
+ Here is the caller graph for this function: