Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
7f8c2a3c
Commit
7f8c2a3c
authored
Nov 01, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reference attributename also for toggledig
parent
42ca1097
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
7 deletions
+34
-7
xtt/lib/ge/src/ge_dyn.cpp
xtt/lib/ge/src/ge_dyn.cpp
+4
-1
xtt/lib/ge/src/ge_graph.cpp
xtt/lib/ge/src/ge_graph.cpp
+22
-5
xtt/lib/ge/src/ge_graph.h
xtt/lib/ge/src/ge_graph.h
+8
-1
No files found.
xtt/lib/ge/src/ge_dyn.cpp
View file @
7f8c2a3c
/*
* Proview $Id: ge_dyn.cpp,v 1.5
6 2007-10-16 07:57:20
claes Exp $
* Proview $Id: ge_dyn.cpp,v 1.5
7 2007-11-01 08:46:27
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -9174,6 +9174,9 @@ int GeToggleDig::action( grow_tObject object, glow_tEvent event)
break
;
db
=
dyn
->
parse_attr_name
(
attribute
,
parsed_name
,
&
inverted
,
&
attr_type
,
&
attr_size
);
if
(
parsed_name
[
0
]
==
'&'
)
dyn
->
graph
->
get_reference_name
(
parsed_name
,
parsed_name
);
switch
(
db
)
{
case
graph_eDatabase_Gdh
:
sts
=
gdh_GetObjectInfo
(
parsed_name
,
&
value
,
sizeof
(
value
));
...
...
xtt/lib/ge/src/ge_graph.cpp
View file @
7f8c2a3c
/*
* Proview $Id: ge_graph.cpp,v 1.4
4 2007-09-19 15:07:22
claes Exp $
* Proview $Id: ge_graph.cpp,v 1.4
5 2007-11-01 08:46:27
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -4093,16 +4093,14 @@ int Graph::ccm_get_variable( char *name, int type, void *data)
}
int
Graph
::
ref_object_info
(
glow_eCycle
cycle
,
char
*
name
,
void
**
data
,
pwr_tSubid
*
subid
,
unsigned
int
size
)
int
Graph
::
get_reference_name
(
char
*
name
,
char
*
tname
)
{
int
dt
;
pwr_tAName
aname
;
pwr_tStatus
sts
;
if
(
name
[
0
]
==
'&'
)
{
// Name contains a reference, get the reference
pwr_tAName
refname
;
pwr_tAName
aname
;
pwr_tAName
refattrname
=
""
;
char
*
s
;
pwr_sAttrRef
aref
;
...
...
@@ -4124,6 +4122,25 @@ int Graph::ref_object_info( glow_eCycle cycle, char *name, void **data,
if
(
EVEN
(
sts
))
return
sts
;
strcat
(
aname
,
refattrname
);
strcpy
(
tname
,
aname
);
}
else
strcpy
(
tname
,
name
);
return
1
;
}
int
Graph
::
ref_object_info
(
glow_eCycle
cycle
,
char
*
name
,
void
**
data
,
pwr_tSubid
*
subid
,
unsigned
int
size
)
{
int
dt
;
pwr_tAName
aname
;
pwr_tStatus
sts
;
if
(
name
[
0
]
==
'&'
)
{
sts
=
get_reference_name
(
name
,
aname
);
if
(
EVEN
(
sts
))
return
sts
;
}
else
strcpy
(
aname
,
name
);
...
...
xtt/lib/ge/src/ge_graph.h
View file @
7f8c2a3c
/*
* Proview $Id: ge_graph.h,v 1.3
0 2007-09-19 15:07:22
claes Exp $
* Proview $Id: ge_graph.h,v 1.3
1 2007-11-01 08:46:27
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1136,6 +1136,13 @@ class Graph {
/*! \return 1 if graph can be exported as a java frame, else 0. */
int
is_javaapplication
();
//! Translate a reference name.
/*!
\param name Attribute name.
\param tname Converted name.
*/
int
get_reference_name
(
char
*
name
,
char
*
tname
);
//! Subscribe or link to an attribute in rtdb.
/*!
\param cycle Cycle for the dynamics. This sets the subscription time.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment