Overture  Version 25
ChannelMapping.h
Go to the documentation of this file.
1 #ifndef CHANNEL_H
2 #define CHANNEL_H "Channel.h"
3 
4 #include "Mapping.h"
5 
6 class ChannelMapping : public Mapping
7 {
8 //-------------------------------------------------------------
9 // Here is a derived class to define a Channel in 2D
10 //-------------------------------------------------------------
11 private:
12  aString className;
13  real xa,xb,ya,yb;
14 
15 public:
16 
17  ChannelMapping(const real xa=0.,
18  const real xb=1.,
19  const real ya=0.,
20  const real yb=1. );
21 
22  // Copy constructor is deep by default
23  ChannelMapping( const ChannelMapping &, const CopyType copyType=DEEP );
24 
26 
28 
31 
32  virtual int get( const GenericDataBase & dir, const aString & name); // get from a database file
33  virtual int put( GenericDataBase & dir, const aString & name) const; // put to a database file
34 
36  aString getClassName() const { return ChannelMapping::className; }
37 
38  int update( MappingInformation & mapInfo ) ;
39 
40  private:
41 
42  //
43  // Virtual member functions used only through class ReferenceCounting:
44  //
46  { return operator=((ChannelMapping &)x); }
47  virtual void reference( const ReferenceCounting& x)
48  { reference((ChannelMapping &)x); } // *** Conversion to this class for the virtual = ****
49  virtual ReferenceCounting* virtualConstructor(const CopyType ct = DEEP) const
50  { return ::new ChannelMapping(*this, ct); }
51 
52 };
53 
54 
55 #endif // CHANNEL_H
56 
57