Class TextEditor

template<class T>
class TextEditor : public Reference::Able

Edit the metadata in a pulsar archive.

Public Functions

inline void add_commands(const std::string &str)

Add a semi-colon or comma-separated list of commands to execute.

inline void add_extensions(const std::string &str)

Add a semi-colon or comma-separated list of extensions to install.

inline void remove_extensions(const std::string &str)

Add a semi-colon or comma-separated list of extensions to remove.

bool will_modify() const

Return true if the process method will modify the archive.

std::string process(T*)

Edit the Archive according to the current state.

inline virtual void add_extension(T*, const std::string &name)

Add the named extension to the instance.

inline virtual void remove_extension(T*, const std::string &name)

Remove the named extension from the instance.

inline virtual std::string get_identifier(const T*)

Get the identifier for this instance.

Public Members

bool prefix_name

Prefix parameter value queries with parameter name=.

bool output_identifier

Print the name of each file processed.

std::string delimiter

Optionally set the delimiter used to separate elements of a container.