Xmipp
v3.23.11-Nereus
|
#include <metadata_static.h>
Static Public Member Functions | |
static void | addLabelAlias (MDLabel label, const String &alias, bool replace=false, MDLabelType type=LABEL_NOTYPE) |
static MDLabel | getNewAlias (const String &alias, MDLabelType type=LABEL_NOTYPE) |
static void | resetBufferIndex () |
static MDRowSql | emptyHeaderSql () |
static MDRowVec | emptyHeaderVec () |
static void | emptifyHeader (MDRow &) |
String conversions | |
static void | str2LabelVector (const String &labelsStr, std::vector< MDLabel > &labels) |
static MDLabel | str2Label (const String &labelName) |
static String | label2Str (const MDLabel &label) |
static String | label2StrSql (const MDLabel label) |
static String | label2SqlColumn (const MDLabel label) |
static String | labelType2Str (MDLabelType type) |
Type checks | |
Several label type checks | |
static bool | isInt (const MDLabel label) |
static bool | isLong (const MDLabel label) |
static bool | isBool (const MDLabel label) |
static bool | isString (const MDLabel label) |
static bool | isDouble (const MDLabel label) |
static bool | isVector (const MDLabel label) |
static bool | isVectorLong (const MDLabel label) |
static bool | isValidLabel (const MDLabel &label) |
static bool | isValidLabel (const String &labelName) |
static MDLabelType | labelType (const MDLabel label) |
static MDLabelType | labelType (const String &labelName) |
static bool | hasTag (const MDLabel label, const int tags) |
static bool | isTextFile (const MDLabel label) |
static bool | isMetadata (const MDLabel label) |
static bool | isCtfParam (const MDLabel label) |
static bool | isImage (const MDLabel label) |
static bool | isVolume (const MDLabel label) |
static bool | isStack (const MDLabel label) |
static bool | isMicrograph (const MDLabel label) |
static bool | isPSD (const MDLabel label) |
static std::map< String, MDLabel > & | getLabelDict () |
Friends | |
class | MDLabelStaticInit |
Static class to group some functions with labels. This class holds several function to work with labels. Also performs the static initialization of the labels data.
Definition at line 37 of file metadata_static.h.
|
static |
Add an alias for an existing label. Params: label: The label id to create the alias to alias: The new alternative string name (alias) replace: If true, then new alias name will be used as the label string for writing back to file type: if provided, the label type will be replaced (only used with replace=True)
NOTE: Be aware that this function is not thread safe, so do not use it concurrently from different threads.
Definition at line 90 of file metadata_static.cpp.
|
static |
Definition at line 321 of file metadata_static.cpp.
|
static |
Definition at line 305 of file metadata_static.cpp.
|
static |
Definition at line 313 of file metadata_static.cpp.
Definition at line 260 of file metadata_static.cpp.
|
static |
Get an alias of an available BUFFER label with the provided name. Params: alias: The name to create the alias from BUFFER label type: if provided, the label type will be replaced
Definition at line 102 of file metadata_static.cpp.
|
static |
Definition at line 265 of file metadata_static.cpp.
|
static |
Definition at line 213 of file metadata_static.cpp.
|
static |
Definition at line 280 of file metadata_static.cpp.
|
static |
Definition at line 223 of file metadata_static.cpp.
|
static |
Definition at line 285 of file metadata_static.cpp.
|
static |
Definition at line 203 of file metadata_static.cpp.
|
static |
Definition at line 208 of file metadata_static.cpp.
|
static |
Definition at line 275 of file metadata_static.cpp.
|
static |
Definition at line 295 of file metadata_static.cpp.
|
static |
Definition at line 300 of file metadata_static.cpp.
|
static |
Definition at line 290 of file metadata_static.cpp.
|
static |
Definition at line 218 of file metadata_static.cpp.
|
static |
Definition at line 270 of file metadata_static.cpp.
|
static |
Definition at line 238 of file metadata_static.cpp.
|
static |
Definition at line 245 of file metadata_static.cpp.
|
static |
Definition at line 228 of file metadata_static.cpp.
|
static |
Definition at line 233 of file metadata_static.cpp.
|
static |
Converts MDLabel to string representing SQL column
Definition at line 150 of file metadata_static.cpp.
Same as label2Str but escaping with '' to use in Sqlite.
Definition at line 144 of file metadata_static.cpp.
|
static |
Definition at line 250 of file metadata_static.cpp.
|
static |
Definition at line 255 of file metadata_static.cpp.
|
static |
Return the type of the label as String
Definition at line 179 of file metadata_static.cpp.
|
static |
Reset the counter of buffer labels. Use this function with care, since when you change the alias, the existing metadata could change and write wrong values to file.
Definition at line 115 of file metadata_static.cpp.
Definition at line 132 of file metadata_static.cpp.
Converts an string to MDLabel
Definition at line 120 of file metadata_static.cpp.
|
friend |
Definition at line 126 of file metadata_static.h.