ODIN
Public Member Functions | List of all members

#include <image.h>

Inheritance diagram for ImageSet:
Inheritance graph
[legend]

Public Member Functions

 ImageSet (const STD_string &label="unnamedImageSet")
 
 ImageSet (const Image &is)
 
 ImageSet (const Sample &smp)
 
ImageSet & operator= (const ImageSet &is)
 
ImageSet & append_image (const Image &img)
 
ImageSet & clear_images ()
 
int get_numof_images () const
 
Image & get_image (unsigned int index=0)
 
int load (const STD_string &filename, const LDRserBase &serializer=LDRserJDX())
 
- Public Member Functions inherited from LDRblock
 LDRblock (const STD_string &title="Parameter List")
 
 LDRblock (const LDRblock &block)
 
 ~LDRblock ()
 
LDRblock & operator= (const LDRblock &block)
 
LDRblock & merge (LDRblock &block, bool onlyUserPars=true)
 
LDRblock & unmerge (LDRblock &block)
 
STD_string printval (const STD_string &parameterName, bool append_unit=false) const
 
bool parseval (const STD_string &parameterName, const STD_string &value)
 
int parseblock (const STD_string &source, const LDRserBase &serializer=LDRserJDX())
 
unsigned int numof_pars () const
 
LDRbase * get_parameter (const STD_string &ldrlabel)
 
bool parameter_exists (const STD_string &ldrlabel) const
 
LDRblock & set_prefix (const STD_string &prefix)
 
LDRblock & set_embedded (bool embedded)
 
bool is_embedded () const
 
LDRbase & operator[] (unsigned int i)
 
const LDRbase & operator[] (unsigned int i) const
 
LDRbase & get_parameter_by_id (int id)
 
LDRblock & create_copy (const LDRblock &src)
 
LDRblock & append_copy (const LDRbase &src)
 
LDRblock & copy_ldr_vals (const LDRblock &src)
 
bool operator== (const LDRblock &rhs) const
 
bool operator< (const LDRblock &rhs) const
 
bool compare (const LDRblock &rhs, const STD_list< STD_string > *exclude=0, double accuracy=0.0) const
 
STD_string print (const LDRserBase &serializer=LDRserJDX()) const
 
LDRbase & set_parmode (parameterMode parameter_mode)
 
LDRbase & set_filemode (fileMode file_mode)
 
STD_string get_parx_code (parxCodeType type) const
 
STD_ostream & print2stream (STD_ostream &os, const LDRserBase &serializer) const
 
bool parsevalstring (const STD_string &, const LDRserBase *ser=0)
 
bool parse (STD_string &parstring, const LDRserBase &serializer)
 
STD_string printvalstring (const LDRserBase *ser=0) const
 
LDRbase * create_copy () const
 
STD_string get_typeInfo (bool parx_equivtype=false) const
 
int load (const STD_string &filename, const LDRserBase &serializer=LDRserJDX())
 
int write (const STD_string &filename, const LDRserBase &serializer=LDRserJDX()) const
 
- Public Member Functions inherited from LDRbase
virtual double get_minval () const
 
virtual double get_maxval () const
 
bool has_minmax () const
 
const STD_string & get_description () const
 
LDRbase & set_description (const STD_string &descr)
 
virtual svector get_alternatives () const
 
const STD_string & get_unit () const
 
LDRbase & set_unit (const STD_string &un)
 
virtual parameterMode get_parmode () const
 
virtual fileMode get_filemode () const
 
virtual GuiProps get_gui_props () const
 
virtual LDRbase & set_gui_props (const GuiProps &)
 
JcampDxProps get_jdx_props () const
 
LDRbase & set_jdx_props (const JcampDxProps &jp)
 
- Public Member Functions inherited from Labeled
 Labeled (const STD_string &label="unnamed")
 
Labeled & set_label (const STD_string &label)
 
const STD_string & get_label () const
 
Labeled & operator= (const Labeled &l)
 
- Public Member Functions inherited from List< I, P, R >
 List ()
 
 ~List ()
 
List & operator= (const List &l)
 
List & clear ()
 
List & append (R item)
 
List & remove (R item)
 
unsigned int size () const
 
iter get_begin ()
 
iter get_end ()
 
constiter get_const_begin () const
 
constiter get_const_end () const
 

Additional Inherited Members

- Public Types inherited from List< I, P, R >
typedef STD_list< P >::iterator iter
 
typedef STD_list< P >::const_iterator constiter
 
- Protected Member Functions inherited from LDRblock
LDRblock & append_member (LDRbase &ldr, const STD_string ldrlabel="")
 

Detailed Description

Class to hold a whole list of Image's

Definition at line 109 of file image.h.

Constructor & Destructor Documentation

◆ ImageSet() [1/3]

ImageSet::ImageSet ( const STD_string &  label = "unnamedImageSet")

Default constructor

◆ ImageSet() [2/3]

ImageSet::ImageSet ( const Image &  is)
inline

Copy constructor

Definition at line 121 of file image.h.

◆ ImageSet() [3/3]

ImageSet::ImageSet ( const Sample &  smp)

Create image set from a sample file

Member Function Documentation

◆ append_image()

ImageSet& ImageSet::append_image ( const Image &  img)

Append another image to the set

◆ clear_images()

ImageSet& ImageSet::clear_images ( )

Clear the list of images in this set

◆ get_image()

Image& ImageSet::get_image ( unsigned int  index = 0)

Returns reference to the image at position 'index'

◆ get_numof_images()

int ImageSet::get_numof_images ( ) const
inline

Returns the number of images in this set

Definition at line 149 of file image.h.

◆ load()

int ImageSet::load ( const STD_string &  filename,
const LDRserBase &  serializer = LDRserJDX() 
)
virtual

Loads the parameter(s) from a file using format 'serializer'. In case of calling this function of a single paramter, the file is searched for this parameter and the value is assigned. In case of a parameter block, all parameter values are taken from the file. The return value is the number of parameters which are successfully parsed. If an error occurs, -1 is returned.

Reimplemented from LDRbase.

◆ operator=()

ImageSet& ImageSet::operator= ( const ImageSet &  is)

Assignment operator


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