/usr/include/tjutils/tjlabel.h is in libodin-dev 1.8.8-2ubuntu1.
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 | /***************************************************************************
tjlabel.h - description
-------------------
begin : Fri Aug 2 2002
copyright : (C) 2000-2014 by Thies H. Jochimsen
email : thies@jochimsen.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef TJLABEL_H
#define TJLABEL_H
#include <tjutils/tjutils.h>
/**
* @addtogroup tjutils
* @{
*/
/**
* This is the base class for all classes which can have a (unique) label
*/
class Labeled {
public:
/**
* Constructor with initialization of label
*/
Labeled(const STD_string& label="unnamed") : objlabel(label) {}
/**
* Assigns a label to the object
*/
Labeled& set_label(const STD_string& label) {objlabel=label; return *this;}
/**
* Returns the label of the object
*/
const STD_string& get_label() const {return objlabel;}
/**
* Assignment operator
*/
Labeled& operator = (const Labeled& l) {
objlabel=l.objlabel;
return *this;
}
private:
STD_string objlabel;
};
/** @}
*/
#endif
|