92 static const std::vector<FileBucket::Type>
types;
95 static const std::vector<FileBucket::Type>
prefixes;
125 return static_cast<FileBucket::Type>(
static_cast<int>(a) |
static_cast<int>(b));
130 return (
static_cast<int>(a) &
static_cast<int>(b)) != 0;
constexpr FileBucket::Type operator|(FileBucket::Type a, FileBucket::Type b)
override type bit operator
constexpr bool operator&(FileBucket::Type a, FileBucket::Type b)
override type bit operator
void removeElement(const bool isTemplate)
remove element
void addElement(const bool isTemplate)
function related with Elements
const bool myDefaultBucket
flag to indicate if this is a default bucket (it cannot be removed)
int myNumElements
number of elements vinculated with this file bucket
FileBucket(const FileBucket &)=delete
Invalidated copy constructor.
int myNumTemplates
number of templates vinculated with this file bucket
Type
Files that this bucket can save.
static const std::vector< FileBucket::Type > types
vector with all types managed in this get bucket handler
const std::string & getFilename() const
get filename
bool isEmpty() const
check if this bucket is empty
const FileBucket::Type myFileType
type
static const std::vector< FileBucket::Type > prefixes
vector with all types and prefixes managed in this get bucket handler
FileBucket::Type getType() const
get file type
FileBucket & operator=(const FileBucket &src)=delete
Invalidated assignment operator.
bool isDefaultBucket() const
check if this is a default bucket
void setFilename(const std::string &filename)
set filename
FileBucket()=delete
Invalidated default constructor.
std::string myFilename
filename
int getNumElements() const
check number of elements (no templates)