Fcitx
Classes | Typedefs | Functions
standardpath.h File Reference

Utility classes to handle XDG file path. More...

#include <cstdint>
#include <functional>
#include <map>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
#include <fcitx-utils/fcitxutils_export.h>
#include <fcitx-utils/log.h>
#include <fcitx-utils/macros.h>
#include <fcitx-utils/standardpaths.h>
#include <fcitx-utils/stringutils.h>
#include <fcitx-utils/unixfd.h>
Include dependency graph for standardpath.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fcitx::filter::Chainer< Types >
 Filter class to chain sub filters together. More...
 
class  fcitx::filter::Chainer<>
 
class  fcitx::filter::Chainer< First, Rest... >
 
struct  fcitx::filter::NotFilter< T >
 Filter class that revert the sub filter result. More...
 
struct  fcitx::filter::User
 Filter class that filters based on user file. More...
 
struct  fcitx::filter::Prefix
 Filter class that filters file based on prefix. More...
 
struct  fcitx::filter::Suffix
 Filter class that filters file based on suffix. More...
 
class  fcitx::StandardPathTempFile
 File descriptor wrapper that handles file descriptor and rename automatically. More...
 
class  fcitx::StandardPathFile
 Utility class that wraps around UnixFD. More...
 
class  fcitx::StandardPath
 Utility class to open, locate, list files based on XDG standard. More...
 
class  fcitx::StandardPathsTypeConverter< StandardPath::Type >
 

Typedefs

using fcitx::StandardPathFileMap = std::map< std::string, StandardPathFile >
 
using fcitx::StandardPathFilesMap = std::map< std::string, std::vector< StandardPathFile > >
 

Functions

template<typename T >
NotFilter< T > fcitx::filter::Not (T t)
 

Detailed Description

Utility classes to handle XDG file path.

Example:

auto files = path.multiOpenAll(StandardPath::Type::PkgData, "inputmethod",
O_RDONLY, filter::Suffix(".conf"));

Open all files under $XDG_CONFIG_{HOME,DIRS}/fcitx5/inputmethod/*.conf.

Definition in file standardpath.h.