Laxkit  0.0.7.1
Public Member Functions | Public Attributes
Laxkit::ImageInfo Class Reference

Kind of a shell to hold various information about an image. More...

Inheritance diagram for Laxkit::ImageInfo:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ImageInfo (const char *f, const char *p, const char *t, const char *d, int pf)
virtual ~ImageInfo ()
ImageInfo & operator= (ImageInfo &f)
virtual int SetInfo (ImageInfo *f)
- Public Member Functions inherited from Laxkit::anObject
 anObject ()
 Set object_id=getUniqueNumber().
virtual ~anObject ()
 Empty virtual destructor.
virtual const char * whattype ()
 Returns the type of anObject.
virtual anObject * duplicate (anObject *ref=NULL)
virtual int inc_count ()
 Increment the data's count by 1. Returns count.
virtual int dec_count ()
 Decrement the count of the data, deleting if count is less than or equal to 0.
virtual int the_count ()
- Public Member Functions inherited from Laxkit::Tagged
virtual int HasTag (const char *tag, int casematters)
 Return whether the tag exists.
virtual int NumberOfTags ()
 Return the number of tags, strangely enough.
virtual const char * GetTag (int i)
 Return const pointer to the tag text for tag number i, where i==0 is the first tag.
virtual char * GetAllTags ()
 Return a new char[] with a space separated list of all the tags.
virtual int InsertTags (const char *tags, int casematters)
 Insert tags from a string such as 'tag1 tag2 tag3 "tag with spaces" tag4'.
virtual int InsertTag (const char *tag, int casematters)
 Insert tag if it doesn't exist already.
virtual int RemoveTag (const char *tag)
 The tag must be an exact match.
virtual int RemoveTag (int i)
 Remove tag number i. i must be in range [0..NumberOfTags()-1].
virtual void FlushTags ()

Public Attributes

char * filename
char * previewfile
char * title
char * description
int previewflags
unsigned int mask
ImageInfo * next
- Public Attributes inherited from Laxkit::anObject
int suppress_debug
DeleteRefCountedFunc deleteMe
 Called when the count is decremented to 0.
unsigned long object_id
char * object_idstr
- Public Attributes inherited from Laxkit::Tagged
int sorttags

Additional Inherited Members

- Protected Attributes inherited from Laxkit::anObject
int _count
 The reference count of the object.
- Protected Attributes inherited from Laxkit::Tagged
PtrStack< char > list_of_tags

Detailed Description

Kind of a shell to hold various information about an image.

Currently, stores:

  1. file name
  2. preview file name
  3. title
  4. description
Todo:
come to think of it, this could be mostly just a hash, which would make integration of exif info easier...

Constructor & Destructor Documentation

Laxkit::ImageInfo::~ImageInfo ( )
virtual

Delete the strings and next.


Member Function Documentation

int Laxkit::ImageInfo::SetInfo ( ImageInfo *  f)
virtual

Return 0 for success, nonzero failure to set.


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

Mon Feb 17 2014 11:52:59, Laxkit