Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 48) sorted by relevance

12

/glogg/glogg/tests/
H A DwatchtowerTest.cpp
H A Dtest_utils.h
/glogg/tests/
H A DwatchtowerTest.cpp47 string createTempEmptyFile( string file_name = "" ) { in createTempEmptyFile()
61 return string( name ); in createTempEmptyFile()
64 string getNonExistingFileName() { in getNonExistingFileName()
66 return string( _tempnam( "c:\\temp", "inexistant" ) ); in getNonExistingFileName()
68 return string( tmpnam( nullptr ) ); in getNonExistingFileName()
96 string file_name;
101 Registration registerFile( const string& filename ) { in registerFile()
137 void appendDataToFile( const string& file_name ) { in appendDataToFile()
138 static const char* string = "Test line\n"; in appendDataToFile() local
140 write( fd, (void*) string, strlen( string ) ); in appendDataToFile()
[all …]
H A Dtest_utils.h12 …text_ += std::string {"."} + std::string {::testing::UnitTest::GetInstance()->current_test_info()-… in TestTimer()
15 TestTimer(const std::string& text) in TestTimer()
30 std::string text_;
/glogg/glogg/src/
H A Dlog.h
H A Dwatchtowerlist.h
H A Dsession.h
H A Dwinwatchtowerdriver.h
H A Dkqueuewatchtowerdriver.h
H A Dwinwatchtowerdriver.cpp
H A Dinotifywatchtowerdriver.h
H A Dwatchtower.h
H A Dsessioninfo.h
H A Dsession.cpp
H A Dmain.cpp
/glogg/src/
H A Dlog.h30 inline std::string NowTime();
41 const std::string& sourceFile = "", int lineNumber = 0);
44 static std::string ToString(TLogLevel level);
45 static TLogLevel FromString(const std::string& level);
68 const std::string& sourceFile, int lineNumber) in Get()
73 os << std::string(level > logDEBUG ? level - logDEBUG : 0, '\t'); in Get()
85 std::string Log<T>::ToString(TLogLevel level) in ToString()
92 TLogLevel Log<T>::FromString(const std::string& level) in FromString()
118 static void Output(const std::string& msg);
127 inline void Output2FILE::Output(const std::string& msg) in Output()
[all …]
H A Dwatchtowerlist.h30 ObservedDir( const std::string this_path ) : path { this_path } {} in ObservedDir()
35 std::string path;
44 const std::string& file_name, in ObservedFile()
80 std::string file_name_;
115 ObservedFile<Driver>* searchByName( const std::string& file_name );
134 std::shared_ptr<ObservedDir<Driver>> watchedDirectory( const std::string& dir_name );
141 const std::string& dir_name,
146 … std::shared_ptr<ObservedDir<Driver>> watchedDirectoryForFile( const std::string& file_name );
147 … std::shared_ptr<ObservedDir<Driver>> addWatchedDirectoryForFile( const std::string& file_name,
191 std::map<std::string, std::weak_ptr<ObservedDir<Driver>>> observed_dirs_;
[all …]
H A Dsession.h60 ViewInterface* getViewIfOpen( const std::string& file_name ) const;
65 ViewInterface* open( const std::string& file_name,
75 std::vector<std::pair<std::string, ViewInterface*>> restore(
92 std::string getFilename( const ViewInterface* view ) const;
103 std::string fileName;
110 ViewInterface* openAlways( const std::string& file_name,
H A Dwinwatchtowerdriver.h117 WinWatchedDirRecord( const std::string& file_name ) in WinWatchedDirRecord()
122 std::string path_;
147 FileChangeToken( const std::string& file_name ) in FileChangeToken()
150 void readFromFile( const std::string& file_name );
171 FileId addFile( const std::string& file_name );
172 SymlinkId addSymlink( const std::string& file_name );
173 DirId addDir( const std::string& file_name );
217 const std::string& file_name,
H A Dkqueuewatchtowerdriver.h74 FileChangeToken( const std::string& ) {} in FileChangeToken() argument
76 void readFromFile( const std::string& ) {} in readFromFile() argument
100 FileId addFile( const std::string& file_name );
101 SymlinkId addSymlink( const std::string& file_name );
102 DirId addDir( const std::string& file_name );
H A Dwinwatchtowerdriver.cpp33 std::string shortstringize( const std::wstring& long_string );
34 std::wstring longstringize( const std::string& short_string );
85 const std::string& file_name ) in readFromFile()
160 const std::string& file_name ) in addFile()
167 const std::string& file_name ) in addSymlink()
176 const std::string& file_name ) in addDir()
239 const std::string& dir_name, in serialisedAddDir()
346 … std::string file_path = dir_record->path_ + shortstringize( notification.fileName() ); in waitAndProcessEvents()
400 std::string shortstringize( const std::wstring& long_string ) in shortstringize()
402 std::string short_result {}; in shortstringize()
[all …]
H A Dinotifywatchtowerdriver.h74 FileChangeToken( const std::string& ) {} in FileChangeToken() argument
76 void readFromFile( const std::string& ) {} in readFromFile() argument
100 FileId addFile( const std::string& file_name );
101 SymlinkId addSymlink( const std::string& file_name );
102 DirId addDir( const std::string& file_name );
H A Dwatchtower.h62 Registration addFile( const std::string& file_name,
91 addFileToDriver( const std::string& );
108 bool isSymLink( const std::string& file_name );
109 std::string directory_path( const std::string& path );
142 const std::string& file_name, in addFile()
219 WatchTower<Driver>::addFileToDriver( const std::string& file_name ) in addFileToDriver()
322 bool isSymLink( const std::string& file_name ) in isSymLink()
H A Dsessioninfo.h47 std::string fileName;
51 std::string viewContext;
H A Dsession.cpp51 ViewInterface* Session::getViewIfOpen( const std::string& file_name ) const in getViewIfOpen()
63 ViewInterface* Session::open( const std::string& file_name, in open()
115 std::vector<std::pair<std::string, ViewInterface*>> Session::restore( in restore()
125 std::vector<std::pair<std::string, ViewInterface*>> result; in restore()
148 std::string Session::getFilename( const ViewInterface* view ) const in getFilename()
174 ViewInterface* Session::openAlways( const std::string& file_name, in openAlways()

12