Edit the metadata in a pulsar archive. More...

#include <TextEditor.h>

Inheritance diagram for TextEditor< T >:
Reference::Able Reference::HeapTracked

Public Member Functions

void add_commands (const std::string &str)
 Add a semi-colon or comma-separated list of commands to execute.
void add_script (const std::string &filename)
void add_extensions (const std::string &str)
 Add a semi-colon or comma-separated list of extensions to install.
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.
virtual void add_extension (T *, const std::string &name)
 Add the named extension to the instance.
virtual void remove_extension (T *, const std::string &name)
 Remove the named extension from the instance.
virtual std::string get_identifier (const T *)
 Get the identifier for this instance.
Public Member Functions inherited from Reference::Able
 Able ()
 Default constructor.
 Able (const Able &)
 Copy constructor.
Ableoperator= (const Able &)
 Assignment operator.
virtual ~Able ()
 Destructor.
unsigned get_reference_count () const
 Returns the number of references there are to this.
Public Member Functions inherited from Reference::HeapTracked
 HeapTracked ()
 Default constructor.
 HeapTracked (const HeapTracked &)
 Copy constructor.
HeapTrackedoperator= (const HeapTracked &)
 Assignment operator.
virtual ~HeapTracked ()
 Destructor.
bool __is_on_heap () const
 Return true if this instance is found in heap addresses.

Public Attributes

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.

Protected Attributes

std::vector< std::string > commands
 commands to be executed
std::vector< std::string > extensions_to_add
 extensions to be added
std::vector< std::string > extensions_to_remove
 extensions to be removed

Additional Inherited Members

Static Public Member Functions inherited from Reference::Able
static size_t get_instance_count ()
 Returns the current number instances in existence.
Static Public Member Functions inherited from Reference::HeapTracked
static void * operator new (size_t size, void *ptr=0)
 Records the addresses of new instances allocated on the heap.
static void operator delete (void *location, void *ptr)
 Placement delete overload to match the placement new overload.
static void operator delete (void *location)
 Regular delete overload.
static size_t get_heap_queue_size ()
 Return the number of heap addresses awaiting processing.
Protected Member Functions inherited from Reference::Able
Handle__reference (bool active) const
 Add the address of a reference to this object.
void __dereference (bool auto_delete=true) const
 Remove the address of a reference to this object.

Detailed Description

template<class T>
class TextEditor< T >

Edit the metadata in a pulsar archive.


The documentation for this class was generated from the following file:

Generated using doxygen 1.14.0