/usr/include/odinseq/seqdur.h is in libodin-dev 1.8.5-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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | /***************************************************************************
seqdur.h - description
-------------------
begin : Wed Aug 14 2002
copyright : (C) 2001 by Thies H. Jochimsen
email : jochimse@cns.mpg.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 SEQDUR_H
#define SEQDUR_H
#include <odinseq/seqtree.h>
/**
* @addtogroup odinseq_internals
* @{
*/
/**
* This is the base class for all objects which have a certain
* duration. This is one of the base classes for all 'sequence atoms'
* i.e. those classes which cannot be devided further (e.g. SeqPuls, SeqAcq, SeqDelay, ...).
* In contrast, the duration of composite objects (e.g. SeqObjList)
* is calculated from their elements.
*/
class SeqDur : public virtual SeqTreeObj {
public:
/**
* Construct a duration object with the given 'object_label' and the specified 'duration'
*/
SeqDur(const STD_string& object_label, float duration);
/**
* Construct an empty duration object with the given label
*/
SeqDur(const STD_string& object_label="unnamedSeqDur");
/**
* Construct a duration object which is a copy of 'sd'
*/
SeqDur(const SeqDur& sd);
/**
* Sets the duration
*/
SeqDur& set_duration(float duration);
// implementing virtual functions of SeqTreeObj
double get_duration() const;
/**
* Assignment operator that makes this duration object become a copy of 'sd'
*/
SeqDur& operator = (const SeqDur& sd);
private:
double dur;
};
/** @}
*/
#endif
|