File: gnssPrn2SvnBlockVariables.cpp

package info (click to toggle)
groops 0%2Bgit20250907%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 11,140 kB
  • sloc: cpp: 135,607; fortran: 1,603; makefile: 20
file content (77 lines) | stat: -rw-r--r-- 2,950 bytes parent folder | download | duplicates (2)
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
/***********************************************/
/**
* @file gnssPrn2SvnBlockVariables.cpp
*
* @brief DEPRECATED. This program no longer works! See documentation for help.
*
* @author Torsten Mayer-Guerr
* @date 2017-03-14
*/
/***********************************************/

// Latex documentation
#define DOCSTRING docstring
static const char *docstring = R"(
DEPRECATED. This program no longer works!

Setup up a \configClass{loop:platformEquipment}{loopType:platformEquipment} instead with
\begin{itemize}
  \item \configFile{inputfilePlatform}{platform}: the old \config{inputfileTransmitterInfo}
  \item \config{equipmentType}         = \verb|gnssAntenna|
  \item \config{variableLoopName}      = \verb|block|
  \item \config{variableLoopSerial}    = \verb|svn|
  \item \config{variableLoopTimeStart} = \verb|svnTimeStart|
  \item \config{variableLoopTimeEnd}   = \verb|svnTimeEnd|
  \item \configClass{condition:expression}{conditionType:expression}
  \begin{itemize}
    \item \config{expression} = \verb|(svnTimeStart <= time) && (time < svnTimeEnd)|
  \end{itemize}
\end{itemize}
Attribute this loop to programs, which uses the variables.
)";

/***********************************************/

#include "programs/program.h"
#include "files/filePlatform.h"

/***** CLASS ***********************************/

/** @brief DEPRECATED. This program no longer works! See documentation for help.
* @ingroup programsGroup */
class GnssPrn2SvnBlockVariables
{
public:
  void run(Config &config, Parallel::CommunicatorPtr comm);
};

GROOPS_REGISTER_PROGRAM(GnssPrn2SvnBlockVariables, SINGLEPROCESS, "This program no longer works! See documentation for help.", Deprecated)

/***********************************************/

void GnssPrn2SvnBlockVariables::run(Config &config, Parallel::CommunicatorPtr /*comm*/)
{
  try
  {
    if(isCreateSchema(config)) return;

    logError<<"This program no longer works!!!!! See documentation for help."<<Log::endl;
    logWarningOnce<<"  Setup up a loop->platformEquipment instead with"<<Log::endl;
    logWarningOnce<<"    - inputfilePlatform     = inputfileTransmitterInfo"<<Log::endl;
    logWarningOnce<<"    - equipmentType         = gnssAntenna"<<Log::endl;
    logWarningOnce<<"    - variableLoopName      = block"<<Log::endl;
    logWarningOnce<<"    - variableLoopSerial    = svn"<<Log::endl;
    logWarningOnce<<"    - variableLoopTimeStart = svnTimeStart"<<Log::endl;
    logWarningOnce<<"    - variableLoopTimeEnd   = svnTimeEnd"<<Log::endl;
    logWarningOnce<<"    - condition->expression"<<Log::endl;
    logWarningOnce<<"      -- expression = (svnTimeStart <= time) && (time < svnTimeEnd)"<<Log::endl;
    logWarningOnce<<"  Attribute the loop to programs, which uses the variables."<<Log::endl;
    throw(Exception("This program no longer works! See documentation for help"));
  }
  catch(std::exception &e)
  {
    GROOPS_RETHROW(e)
  }
}

/***********************************************/