/glogg/glogg/src/ |
H A D | watchtowerlist.h |
|
H A D | watchtower.h |
|
H A D | session.h |
|
H A D | winwatchtowerdriver.h |
|
H A D | session.cpp |
|
H A D | viewinterface.h |
|
H A D | persistentinfo.h |
|
H A D | winwatchtowerdriver.cpp |
|
H A D | viewtools.cpp |
|
H A D | log.h |
|
H A D | inotifywatchtowerdriver.h |
|
/glogg/src/ |
H A D | watchtowerlist.h | 30 ObservedDir( const std::string this_path ) : path { this_path } {} in ObservedDir() 35 std::string path; 44 const std::string& file_name, in ObservedFile() 45 std::shared_ptr<void> callback, in ObservedFile() 58 void addCallback( std::shared_ptr<void> callback ) { in addCallback() 65 last_check_time_ = std::chrono::steady_clock::now(); in markAsChanged() 72 last_check_time_ = std::chrono::steady_clock::now(); in hasChanged() 76 std::chrono::steady_clock::time_point timeForLastCheck() { in timeForLastCheck() 80 std::string file_name_; 82 std::vector<std::shared_ptr<void>> callbacks; [all …]
|
H A D | watchtower.h | 40 using Registration = std::shared_ptr<void>; 42 typedef std::shared_ptr<void> Registration; 62 Registration addFile( const std::string& file_name, 63 std::function<void()> notification ); 76 std::mutex observers_mutex_; 82 std::atomic_bool running_; 83 std::thread thread_; 87 std::shared_ptr<void> heartBeat_; 90 std::tuple<typename Driver::FileId, typename Driver::SymlinkId> 91 addFileToDriver( const std::string& ); [all …]
|
H A D | session.h | 60 ViewInterface* getViewIfOpen( const std::string& file_name ) const; 65 ViewInterface* open( const std::string& file_name, 66 std::function<ViewInterface*()> view_factory ); 75 std::vector<std::pair<std::string, ViewInterface*>> restore( 76 std::function<ViewInterface*()> view_factory, 83 void save( std::vector< 84 … std::tuple<const ViewInterface*, uint64_t, std::shared_ptr<const ViewContextInterface>> 92 std::string getFilename( const ViewInterface* view ) const; 98 std::shared_ptr<QuickFindPattern> getQuickFindPattern() const in getQuickFindPattern() 103 std::string fileName; [all …]
|
H A D | winwatchtowerdriver.h | 47 WinNotificationInfo( Action action, std::wstring file_name ) in WinNotificationInfo() 51 std::wstring fileName() const { return file_name_; } in fileName() 55 std::wstring file_name_; 63 class iterator : std::iterator<std::input_iterator_tag, WinNotificationInfo> { 117 WinWatchedDirRecord( const std::string& file_name ) in WinWatchedDirRecord() 122 std::string path_; 140 std::shared_ptr<WinWatchedDirRecord> dir_record_; 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 ); [all …]
|
H A D | session.cpp | 43 quickFindPattern_ = std::make_shared<QuickFindPattern>(); in Session() 51 ViewInterface* Session::getViewIfOpen( const std::string& file_name ) const in getViewIfOpen() 53 auto result = std::find_if( openFiles_.begin(), openFiles_.end(), in getViewIfOpen() 54 [&](const std::pair<const ViewInterface*, OpenFile>& o) in getViewIfOpen() 63 ViewInterface* Session::open( const std::string& file_name, in open() 64 std::function<ViewInterface*()> view_factory ) in open() 84 void Session::save( std::vector< in save() 85 std::tuple<const ViewInterface*, in save() 87 std::shared_ptr<const ViewContextInterface>> in save() 93 std::vector<SessionInfo::OpenFile> session_files; in save() [all …]
|
H A D | viewinterface.h | 37 virtual std::string toString() const = 0; 47 void setData( std::shared_ptr<LogData> log_data, in setData() 48 std::shared_ptr<LogFilteredData> filtered_data ) in setData() 52 void setQuickFindPattern( std::shared_ptr<QuickFindPattern> qfp ) in setQuickFindPattern() 56 void setSavedSearches( std::shared_ptr<SavedSearches> saved_searches ) in setSavedSearches() 63 std::shared_ptr<const ViewContextInterface> context( void ) const in context() 71 virtual void doSetData( std::shared_ptr<LogData> log_data, 72 std::shared_ptr<LogFilteredData> filtered_data ) = 0; 74 std::shared_ptr<QuickFindPattern> qfp ) = 0; 76 std::shared_ptr<SavedSearches> saved_searches ) = 0; [all …]
|
H A D | persistentinfo.h | 39 void registerPersistable( std::shared_ptr<Persistable> object, 42 std::shared_ptr<Persistable> getPersistable( const QString& name ); 58 QHash<QString, std::shared_ptr<Persistable>> objectList_; 72 std::shared_ptr<T> Persistent( const char* name ) in Persistent() 74 std::shared_ptr<Persistable> p = in Persistent() 76 return std::dynamic_pointer_cast<T>(p); in Persistent() 80 std::shared_ptr<T> PersistentCopy( const char* name ) in PersistentCopy() 82 std::shared_ptr<Persistable> p = in PersistentCopy() 84 return std::make_shared<T>( *( std::dynamic_pointer_cast<T>(p) ) ); in PersistentCopy()
|
H A D | winwatchtowerdriver.cpp | 33 std::string shortstringize( const std::wstring& long_string ); 34 std::wstring longstringize( const std::string& short_string ); 50 static const std::map<uint16_t, Action> int_to_action = { in updateCurrentNotification() 62 …const std::wstring file_name = { reinterpret_cast<const wchar_t*>( new_position + 12 ), length / 2… in updateCurrentNotification() 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() 224 LOG(logDEBUG) << "WinWatchTowerDriver::removeDir handle=" << std::hex << handle; in removeDir() 239 const std::string& dir_name, in serialisedAddDir() [all …]
|
H A D | viewtools.cpp | 37 position_ = std::min( position_ + ( value - resistance ), MAX_POSITION ); in move() 39 if ( !held_ && ( std::chrono::duration_cast<std::chrono::milliseconds> in move() 40 ( std::chrono::steady_clock::now() - last_update_ ).count() > TIMER_PERIOD_MS ) ) in move() 57 last_update_ = std::chrono::steady_clock::now(); in move() 66 if ( !held_ && ( std::chrono::duration_cast<std::chrono::milliseconds> in timerEvent() 67 ( std::chrono::steady_clock::now() - last_update_ ).count() > TIMER_PERIOD_MS ) ) { in timerEvent() 69 last_update_ = std::chrono::steady_clock::now(); in timerEvent() 78 if ( std::abs( position_ ) < DECREASE_RATE ) { in decreasePosition()
|
H A D | log.h | 30 inline std::string NowTime(); 40 std::ostringstream& Get(TLogLevel level = logINFO, 41 const std::string& sourceFile = "", int lineNumber = 0); 44 static std::string ToString(TLogLevel level); 45 static TLogLevel FromString(const std::string& level); 51 std::ostringstream os; 67 std::ostringstream& Log<T>::Get(TLogLevel level, in Get() 68 const std::string& sourceFile, int lineNumber) in Get() 73 os << std::string(level > logDEBUG ? level - logDEBUG : 0, '\t'); in Get() 80 os << std::endl; in ~Log() [all …]
|
H A D | inotifywatchtowerdriver.h | 74 FileChangeToken( const std::string& ) {} in FileChangeToken() 76 void readFromFile( const std::string& ) {} in readFromFile() 100 FileId addFile( const std::string& file_name ); 101 SymlinkId addSymlink( const std::string& file_name ); 102 DirId addDir( const std::string& file_name ); 114 std::vector<INotifyObservedFile*> waitAndProcessEvents( 116 std::unique_lock<std::mutex>* list_mutex, 117 std::vector<INotifyObservedFile*>* files_needing_readding, 134 std::vector<INotifyObservedFile*>* files_to_notify, 135 std::vector<INotifyObservedFile*>* files_needing_readding );
|
/glogg/glogg/tests/ |
H A D | test_utils.h |
|
/glogg/tests/ |
H A D | test_utils.h | 12 …text_ += std::string {"."} + std::string {::testing::UnitTest::GetInstance()->current_test_info()-… in TestTimer() 15 TestTimer(const std::string& text) in TestTimer() 16 : Start { std::chrono::system_clock::now() } in TestTimer() 20 using namespace std; in ~TestTimer() local 27 std::chrono::time_point<std::chrono::system_clock> Start; 28 std::chrono::time_point<std::chrono::system_clock> Stop; 29 std::chrono::microseconds Elapsed; 30 std::string text_; 37 : QSignalSpy( std::forward<Args>(args)... ) {} in SafeQSignalSpy()
|
/glogg/glogg/src/data/ |
H A D | threadprivatestore.h |
|