Linuxpops
3.01.04
Spectral Anaysis Package for Single Dish Data
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
demo.c
Go to the documentation of this file.
1
/*
2
Copyright 2021 Arizona Board of Regents on behalf of the University of Arizona.
3
4
For commercial uses, to obtain a license to sell and or sublicense copies of
5
the Software please contact the University of Arizona at Tech Launch Arizona:
6
lewish@tla.arizona.edu.
7
8
Permission is hereby granted, free of charge, to any person obtaining a copy
9
of this software and associated documentation files (the "Software"), to deal
10
in the Software without restriction for non-commercial use educational and
11
research purposes, including without limitation the rights to use, copy,
12
modify, merge, publish, distribute, and to permit persons to whom the Software
13
is furnished to do so, subject to the following conditions:
14
15
The entire above copyright notice and this permission notice shall be included
16
in all copies or substantial portions of the Software.
17
18
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
SOFTWARE.
25
26
1. Additional Required Provisions
27
28
1.1. Arbitration. The parties agree that if a dispute arises between them
29
concerning this Agreement, the parties may be required to submit the matter to
30
arbitration pursuant to Arizona law.
31
32
1.2. Applicable Law and Venue. This Agreement shall be interpreted pursuant
33
to the laws of the State of Arizona. Any arbitration or litigation between the
34
Parties shall be conducted in Pima County, ARIZONA, and LICENSEE hereby
35
submits to venue and jurisdiction in Pima County, ARIZONA.
36
37
1.3. Non-Discrimination. The Parties agree to be bound by state and federal
38
laws and regulations governing equal opportunity and non-discrimination and
39
immigration.
40
41
1.4. Appropriation of Funds. The Parties recognize that performance by
42
ARIZONA may depend upon appropriation of funds by the State Legislature of
43
ARIZONA. If the Legislature fails to appropriate the necessary funds, or if
44
ARIZONA’S appropriation is reduced during the fiscal year, ARIZONA may cancel
45
this Agreement without further duty or obligation. ARIZONA will notify
46
LICENSEE as soon as reasonably possible after it knows of the loss of funds.
47
48
1.5. Conflict of Interest. This Agreement is subject to the provisions of
49
A.R.S. 38-511 and other conflict of interest regulations. Within three years
50
of the EFFECTIVE DATE, ARIZONA may cancel this Agreement if any person
51
significantly involved in initiating, negotiating, drafting, securing, or
52
creating this Agreement for or on behalf of ARIZONA becomes an employee or
53
consultant in any capacity of LICENSEE with respect to the subject matter of
54
this Agreement.
55
56
*/
57
58
59
#include "
extern.h
"
60
61
int
doDemo
()
62
{
63
int
which;
64
char
tbuf[256];
65
66
st_report
(
"doDemo(): with %d tokens"
,
args
->
ntokens
);
67
68
if
(
args
->
ntokens
> 2)
69
{
70
which = atoi(
args
->
thirdArg
);
71
72
if
(which > 4 && which <
MAX_ENV
)
73
{
74
sprintf(tbuf,
"switch %d"
, which);
75
}
76
else
77
{
78
st_fail
(
"doDemo(): Env %d out of range"
, which);
79
80
printH_FlagHelp
(
"demo"
);
81
82
return
(1);
83
}
84
85
if
(!
strcmp
(
args
->
secondArg
,
"cmap"
))
86
{
87
sprintf(tbuf,
"load $DEMO_DIR/jmap.prc"
);
88
parseCmd
(tbuf);
89
90
return
(0);
91
}
92
else
93
if
(!
strcmp
(
args
->
secondArg
,
"baseline"
))
94
{
95
sprintf(tbuf,
"load $DEMO_DIR/baseline-demo.save /q"
);
96
parseCmd
(tbuf);
97
98
return
(0);
99
}
100
else
101
{
102
st_fail
(
"Unknown Demo Function"
);
103
printH_FlagHelp
(
"demo"
);
104
105
return
(1);
106
}
107
}
108
else
109
{
110
printH_FlagHelp
(
"demo"
);
111
}
112
113
return
(1);
114
}
args
struct PARSE_STACK * args
Definition:
parse.h:196
printH_FlagHelp
int printH_FlagHelp(char *cmd)
Definition:
help.c:430
doDemo
int doDemo()
Definition:
demo.c:61
PARSE_STACK::thirdArg
char * thirdArg
Definition:
parse.h:182
st_fail
void st_fail()
strcmp
int strcmp()
extern.h
st_report
void st_report()
PARSE_STACK::secondArg
char * secondArg
Definition:
parse.h:181
PARSE_STACK::ntokens
int ntokens
Definition:
parse.h:173
MAX_ENV
#define MAX_ENV
Definition:
defines.h:35
parseCmd
int parseCmd(char *buf)
Definition:
parse.c:2090
linuxpops
demo.c
Generated on Mon Feb 21 2022 20:37:01 for Linuxpops by
1.8.5