File: txid.h

package info (click to toggle)
tralics 2.14.4-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 17,152 kB
  • ctags: 8,260
  • sloc: cpp: 49,403; xml: 18,145; sh: 140; makefile: 118
file content (34 lines) | stat: -rw-r--r-- 1,239 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// -*- C++ -*-
// $Id: txid.h,v 2.4 2008/02/21 17:45:58 grimm Exp $
// TRALICS, copyright (C) INRIA/apics (Jose' Grimm) 2006,2008

// This software is governed by the CeCILL license under French law and
// abiding by the rules of distribution of free software.  You can  use, 
// modify and/ or redistribute the software under the terms of the CeCILL
// license as circulated by CEA, CNRS and INRIA at the following URL
// "http://www.cecill.info". 
// (See the file COPYING in the main directory for details)



// Adress of attribute list of an xml object
// is a wrapper around an int
class Xid {
 public: 
  int value; // value of the id
  Xid(int v) :  value(v) {}
  Xid() : value(0) {}
  AttList& get_att() const;
  void add_attribute(Istring A,Istring B);
  void add_attribute(Istring A,Istring B,bool f);
  void add_attribute(name_positions A, name_positions B);
  void add_attribute(name_positions n, name_positions v,bool);
  void add_attribute(name_positions n, Istring v);
  void add_attribute(const AttList& L);
  void add_attribute(Xid b);
  void add_ref(string);
  bool operator==(Xid X)const { return value==X.value; }
  Istring has_attribute(Istring n);
  bool is_font_change() const;
  void add_special_att(string S);
};