Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
7f6dcb98
Commit
7f6dcb98
authored
16 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add defines to use keyvalue structs/calls to read style config file.
parent
f1b476f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/include/ZMap/zmapConfigStanzaStructs.h
+27
-43
27 additions, 43 deletions
src/include/ZMap/zmapConfigStanzaStructs.h
with
27 additions
and
43 deletions
src/include/ZMap/zmapConfigStanzaStructs.h
+
27
−
43
View file @
7f6dcb98
...
...
@@ -25,17 +25,18 @@
*
* Description:
*
* Exported functions: See XXXXXXXXXXXXX.h
* HISTORY:
* Last edited:
Oct 23 16:29
2008 (edgrif)
* Last edited:
Nov 13 08:58
2008 (edgrif)
* Created: Tue Aug 26 12:38:28 2008 (rds)
* CVS info: $Id: zmapConfigStanzaStructs.h,v 1.
2
2008-1
0-29 16:06:38
edgrif Exp $
* CVS info: $Id: zmapConfigStanzaStructs.h,v 1.
3
2008-1
1-13 09:00:50
edgrif Exp $
*-------------------------------------------------------------------
*/
#ifndef ZMAPCONFIGSTANZASTRUCTS_H
#define ZMAPCONFIGSTANZASTRUCTS_H
/* We should convert this to use the same calls/mechanism as the keyvalue stuff below. */
typedef
struct
_ZMapConfigSourceStruct
{
char
*
url
;
...
...
@@ -48,51 +49,34 @@ typedef struct _ZMapConfigSourceStruct
}
ZMapConfigSourceStruct
,
*
ZMapConfigSource
;
typedef
struct
_ZMapConfigStyleStruct
{
struct
{
unsigned
int
name
:
1
;
unsigned
int
description
:
1
;
unsigned
int
mode
:
1
;
unsigned
int
width
:
1
;
unsigned
int
overlap_mode
:
1
;
unsigned
int
border
:
1
;
unsigned
int
fill
:
1
;
unsigned
int
draw
:
1
;
unsigned
int
strand_specific
:
1
;
unsigned
int
show_reverse_strand
:
1
;
unsigned
int
frame_specific
:
1
;
}
fields_set
;
typedef
enum
{
ZMAPCONF_INVALID
,
ZMAPCONF_BOOLEAN
,
ZMAPCONF_INT
,
ZMAPCONF_DOUBLE
,
ZMAPCONF_STR
,
ZMAPCONF_STR_ARRAY
}
ZMapKeyValueType
;
typedef
enum
{
ZMAPCONV_INVALID
,
ZMAPCONV_NONE
,
ZMAPCONV_STR2ENUM
,
ZMAPCONV_STR2COLOUR
}
ZMapKeyValueConv
;
typedef
int
(
*
ZMapConfStr2EnumFunc
)(
const
char
*
str
)
;
typedef
struct
ZMapKeyValueStructID
{
char
*
name
;
char
*
description
;
char
*
mode
;
char
*
border
,
*
fill
,
*
draw
;
double
width
;
char
*
overlap_mode
;
gboolean
strand_specific
,
show_reverse_strand
,
frame_specific
;
double
min_mag
,
max_mag
;
gboolean
gapped_align
,
read_gaps
;
gboolean
init_hidden
;
}
ZMapConfigStyleStruct
,
*
ZMapConfigStyle
;
gboolean
has_value
;
ZMapKeyValueType
type
;
union
{
gboolean
b
;
int
i
;
double
d
;
char
*
str
;
char
**
str_array
;
}
data
;
ZMapKeyValueConv
conv_type
;
union
{
ZMapConfStr2EnumFunc
str2enum
;
}
conv_func
;
}
ZMapKeyValueStruct
,
*
ZMapKeyValue
;
#endif
/* ZMAPCONFIGSTANZASTRUCTS_H */
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment