xorp

xrl_tokens.hh

00001 // -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
00002 // vim:set sts=4 ts=8:
00003 
00004 // Copyright (c) 2001-2009 XORP, Inc.
00005 //
00006 // This program is free software; you can redistribute it and/or modify
00007 // it under the terms of the GNU Lesser General Public License, Version
00008 // 2.1, June 1999 as published by the Free Software Foundation.
00009 // Redistribution and/or modification of this program under the terms of
00010 // any other version of the GNU Lesser General Public License is not
00011 // permitted.
00012 // 
00013 // This program is distributed in the hope that it will be useful, but
00014 // WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00016 // see the GNU Lesser General Public License, Version 2.1, a copy of
00017 // which can be found in the XORP LICENSE.lgpl file.
00018 // 
00019 // XORP, Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
00020 // http://xorp.net
00021 
00022 // $XORP: xorp/libxipc/xrl_tokens.hh,v 1.12 2008/10/02 21:57:26 bms Exp $
00023 
00024 #ifndef __LIBXIPC_XRL_TOKENS_HH__
00025 #define __LIBXIPC_XRL_TOKENS_HH__
00026 
00027 struct XrlToken {
00028     // Protocol - Target separator
00029     static const char* PROTO_TGT_SEP;
00030     
00031     // Target - Command separator
00032     static const char* TGT_CMD_SEP;
00033     
00034     // Command - Arguments separator
00035     static const char* CMD_ARGS_SEP;
00036 
00037     // Argument-Argument separator
00038     static const char* ARG_ARG_SEP;
00039 
00040     // Argument Name-Type separator
00041     static const char* ARG_NT_SEP;
00042 
00043     // Argument Type-Value separator
00044     static const char* ARG_TV_SEP;
00045 
00046     // Input Argument list - Output argument list separator
00047     static const char* ARG_RARG_SEP;
00048 
00049     // Line Continuation
00050     static const char* LINE_CONT;
00051 
00052     // XrlAtomList item separator
00053     static const char* LIST_SEP;
00054 };
00055 
00056 #define TOKEN_BYTES(x) (strlen(x) + 1)
00057 
00058 #endif // __LIBXIPC_XRL_TOKENS_HH__
 All Classes Namespaces Functions Variables Typedefs Enumerations