aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tv/src/tv_db_int_def.hrl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
committerErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
commit84adefa331c4159d432d22840663c38f155cd4c1 (patch)
treebff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/tv/src/tv_db_int_def.hrl
downloadotp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz
otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2
otp-84adefa331c4159d432d22840663c38f155cd4c1.zip
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/tv/src/tv_db_int_def.hrl')
-rw-r--r--lib/tv/src/tv_db_int_def.hrl80
1 files changed, 80 insertions, 0 deletions
diff --git a/lib/tv/src/tv_db_int_def.hrl b/lib/tv/src/tv_db_int_def.hrl
new file mode 100644
index 0000000000..d2cb8adee5
--- /dev/null
+++ b/lib/tv/src/tv_db_int_def.hrl
@@ -0,0 +1,80 @@
+%%
+%% %CopyrightBegin%
+%%
+%% Copyright Ericsson AB 1997-2009. All Rights Reserved.
+%%
+%% The contents of this file are subject to the Erlang Public License,
+%% Version 1.1, (the "License"); you may not use this file except in
+%% compliance with the License. You should have received a copy of the
+%% Erlang Public License along with this software. If not, it can be
+%% retrieved online at http://www.erlang.org/.
+%%
+%% Software distributed under the License is distributed on an "AS IS"
+%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
+%% the License for the specific language governing rights and limitations
+%% under the License.
+%%
+%% %CopyrightEnd%
+%%%*********************************************************************
+%%%
+%%% Description: Internal definitions for the database part of the table
+%%% tool.
+%%%
+%%%*********************************************************************
+
+-define(WHITE, {255, 255, 255}).
+-define(MEDIUM_GRAY, {170, 170, 170}).
+
+
+-define(LIGHT_GREEN, { 0, 255, 0}).
+-define(GREEN, { 50, 215, 50}).
+-define(DARK_GREEN, { 50, 170, 50}).
+-define(FOREST_GREEN, { 34, 139, 34}).
+-define(DARK_FOREST_GREEN, { 15, 100, 15}).
+
+
+
+-define(RED, {255, 0, 0}).
+-define(PINK, {255, 130, 170}).
+-define(LIGHT_VIOLET, {220, 150, 225}).
+-define(VIOLET, {160, 70, 180}).
+-define(DARK_VIOLET, {100, 10, 130}).
+
+
+
+
+
+
+-record(db_data, {db = [], % List containing all elements
+ db_size = 0, % Number of elements in 'db'
+ max_elem_size = 0, % Size of largest element in db.
+ hidden = [], % Elements (i.e., keys) not to be shown
+ deleted = [], % Elements just deleted
+ subset_size, % Size of the subset to be extracted and
+ % shown
+ subset_pos, % Position in list where subset starts
+ sorting = false, % Tells whether sorting is used ('true'
+ % or 'false')
+ requested_row = 0,
+ rev_sorting = false, % Tells whether the sorting (if any) is
+ % in reversed order or not ('true' or
+ % 'false')
+ sort_key_no, % Element in each tuple to use as sorting
+ % element
+ key_no, % Element in each tuple to use as key
+ % (this element is used when updating the
+ % dblist, i.e., inserting, deleting a.s.o)
+ ets_type % 'bag' or 'set'
+ }).
+
+
+-record(process_variables, {master_pid,
+ etsread_pid,
+ db_data = #db_data{},
+ list_of_keys = [],
+ lists_as_strings = true
+ }).
+
+
+
+