/usr/include/magics/BinaryObject.h is in libmagics++-dev 2.18.15-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | /*! \file BinaryObject.h
\brief Definition of the Template class BinaryObject.
Magics Team - ECMWF 2010
Started: Fri 8-Jan-2010
Changes:
*/
#ifndef BinaryObject_H
#define BinaryObject_H
#include "magics.h"
#include "BasicGraphicsObject.h"
#include "BasicSceneObject.h"
#include "BinaryObjectAttributes.h"
namespace magics {
class BaseDriver;
class SceneLayer;
class BinaryObject:
public BasicGraphicsObject,
public BasicSceneObject,
public BinaryObjectAttributes
{
public:
BinaryObject();
virtual ~BinaryObject();
void redisplay(const BaseDriver&) const;
void visit(SceneLayer&);
void set(const map<string, string>& map ) { BinaryObjectAttributes::set(map); }
void set(const XmlNode& node ) { BinaryObjectAttributes::set(node); }
const string& getPath() const
{ return path_; }
double getTransparency() const { return transparency_; }
int getMgb_x() const { return mgb_x_; }
int getMgb_y() const { return mgb_y_; }
int getMgb_width() const { return mgb_width_; }
int getMgb_height() const { return mgb_height_; }
protected:
//! Method to print string about this class on to a stream of type ostream (virtual).
virtual void print(ostream&) const;
private:
//! Copy constructor - No copy allowed
BinaryObject(const BinaryObject&);
//! Overloaded << operator to copy - No copy allowed
BinaryObject& operator=(const BinaryObject&);
// -- Friends
//! Overloaded << operator to call print().
friend ostream& operator<<(ostream& s,const BinaryObject& p)
{ p.print(s); return s; }
};
} // namespace magics
#endif
|