ARB
Classes | Macros | Functions
TreeRead.cxx File Reference
#include "TreeRead.h"
#include <TreeNode.h>
#include <arb_msg_fwd.h>
#include <arb_strbuf.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_DROPPED_GROUP_WARN   100
 
#define NAME_TOO_LONG   ((s-buffer)>MAX_NAME_LEN)
 

Functions

static TreeNodecreateLinkedTreeNode (const TreeRoot &nodeMaker, TreeNode *left, GBT_LEN leftlen, TreeNode *right, GBT_LEN rightlen)
 
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)
 

Macro Definition Documentation

#define tree_assert (   cond)    arb_assert(cond)

Definition at line 20 of file TreeRead.cxx.

Referenced by TREE_load().

#define MAX_DROPPED_GROUP_WARN   100

load a tree from file system

Definition at line 26 of file TreeRead.cxx.

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

Function Documentation

static TreeNode* createLinkedTreeNode ( const TreeRoot nodeMaker,
TreeNode left,
GBT_LEN  leftlen,
TreeNode right,
GBT_LEN  rightlen 
)
static
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 
)