ARB
Classes | Macros | Functions | Variables
TreeRead.cxx File Reference
#include "TreeRead.h"
#include <TreeNode.h>
#include <arb_msg_fwd.h>
#include <arb_strbuf.h>
#include <arb_strarray.h>
#include <arb_file.h>
#include <arb_defs.h>
#include <algorithm>
Include dependency graph for TreeRead.cxx:

Go to the source code of this file.

Classes

class  TreeReader
 

Macros

#define tree_assert(cond)   arb_assert(cond)
 
#define MAX_READER_WARN   100
 
#define NAME_TOO_LONG   ((s-buffer)>MAX_NAME_LEN)
 

Functions

void append_leaf_redef_details (GBS_strstruct &summary, int droppedAtLeaf, int droppedRedefined)
 
static TreeNodecreateLinkedTreeNode (const TreeRoot &nodeMaker, TreeNode *left, GBT_LEN leftlen, TreeNode *right, GBT_LEN rightlen)
 
static void warningToConsumingReader (const char *msg)
 
TreeNodeTREE_load (const char *path, TreeRoot *troot, char **commentPtr, bool allow_length_scaling, char **warningPtr)
 
GB_ERROR TREE_load_to_db (GBDATA *gb_main, const char *treefile, const char *tree_name, const LabelTranslator &translator)
 

Variables

static TreeReaderconsumingReader = NULp
 

Macro Definition Documentation

#define tree_assert (   cond)    arb_assert(cond)

Definition at line 21 of file TreeRead.cxx.

Referenced by TREE_load().

#define MAX_READER_WARN   100

Definition at line 48 of file TreeRead.cxx.

#define NAME_TOO_LONG   ((s-buffer)>MAX_NAME_LEN)

Function Documentation

void append_leaf_redef_details ( GBS_strstruct summary,
int  droppedAtLeaf,
int  droppedRedefined 
)
inline
static TreeNode* createLinkedTreeNode ( const TreeRoot nodeMaker,
TreeNode left,
GBT_LEN  leftlen,
TreeNode right,
GBT_LEN  rightlen 
)
static
static void warningToConsumingReader ( const char msg)
static

Definition at line 730 of file TreeRead.cxx.

References TreeReader::add_warning().

Referenced by TREE_load().

TreeNode* TREE_load ( const char path,
TreeRoot troot,
char **  commentPtr,
bool  allow_length_scaling,
char **  warningPtr 
)
GB_ERROR TREE_load_to_db ( GBDATA gb_main,
const char treefile,
const char tree_name,
const LabelTranslator translator 
)

Variable Documentation

TreeReader* consumingReader = NULp
static

Definition at line 729 of file TreeRead.cxx.