Edinburgh Speech Tools
2.4-release
Edinburgh Speech Tools
Introduction to the Edinburgh Speech Tools
Licence, Installation and acknowledgements
Executable Programs
Basic Classes
Speech Classes
Linguistic Classes
Utility Functions
Signal Processing
Client-Server Mechanisms
Grammar
Classification and Regression Trees
The Tilt Intonation Model
XML support
align
ch_lab
ch_utt
design_filter
sig2fv
wagon_test
wfst_run
Bibliographic References
Classes
Files
File List
audio
base_class
doc
grammar
include
instantiate
ling_class
rxp
sigpr
unix
win32
EST.h
EST_audio.h
EST_bool.h
EST_ChannelType.h
EST_Chunk.h
EST_cluster.h
EST_cmd_line.h
EST_cmd_line_options.h
EST_common.h
EST_Complex.h
EST_Contents.h
EST_cutils.h
EST_DMatrix.h
EST_dynamic_model.h
EST_error.h
EST_Event.h
EST_Featured.h
EST_FeatureData.h
EST_Features.h
EST_features_aux.h
EST_FileType.h
EST_FMatrix.h
EST_FringeServer.h
EST_grammar.h
EST_Handleable.h
EST_HMM.h
EST_IMatrix.h
EST_inline_utils.h
EST_io_aux.h
EST_iostream.h
EST_kalman.h
EST_lattice.h
EST_lattice_io.h
EST_ling_class.h
EST_math.h
EST_model_types.h
EST_multistats.h
EST_Ngrammar.h
EST_Option.h
EST_Pathname.h
EST_PST.h
EST_Regex.h
EST_rw_status.h
EST_SCFG.h
EST_SCFG_Chart.h
EST_Server.h
EST_ServiceTable.h
EST_sigpr.h
EST_simplestats.h
EST_SingleChannelWave.h
EST_SMatrix.h
EST_socket.h
EST_sort.h
EST_speech_class.h
EST_stats.h
EST_strcasecmp.h
EST_String.h
EST_string_aux.h
EST_StringTrie.h
EST_system.h
EST_TBox.h
EST_TBuffer.h
EST_TDeque.h
EST_THandle.h
EST_THash.h
EST_tilt.h
EST_TIterator.h
EST_TKVL.h
EST_TList.h
EST_TMatrix.h
EST_TNamedEnum.h
EST_Token.h
EST_Track.h
EST_track_aux.h
EST_TrackMap.h
EST_TSimpleMatrix.h
EST_TSimpleVector.h
EST_TSortable.h
EST_TTimeIndex.h
EST_TVector.h
EST_types.h
EST_UList.h
EST_unix.h
EST_util_class.h
EST_Val.h
EST_Val_defs.h
EST_viterbi.h
EST_Wagon.h
EST_walloc.h
EST_Wave.h
EST_wave_aux.h
EST_WFST.h
siod.h
siod_defs.h
siod_est.h
intonation
ling_class
main
rxp
sigpr
siod
speech_class
stats
testsuite
utils
•
All
Classes
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
EST_Pathname.h
1
/************************************************************************/
2
/* */
3
/* Centre for Speech Technology Research */
4
/* University of Edinburgh, UK */
5
/* Copyright (c) 1996,1997 */
6
/* All Rights Reserved. */
7
/* */
8
/* Permission is hereby granted, free of charge, to use and distribute */
9
/* this software and its documentation without restriction, including */
10
/* without limitation the rights to use, copy, modify, merge, publish, */
11
/* distribute, sublicense, and/or sell copies of this work, and to */
12
/* permit persons to whom this work is furnished to do so, subject to */
13
/* the following conditions: */
14
/* 1. The code must retain the above copyright notice, this list of */
15
/* conditions and the following disclaimer. */
16
/* 2. Any modifications must be clearly marked as such. */
17
/* 3. Original authors' names are not deleted. */
18
/* 4. The authors' names are not used to endorse or promote products */
19
/* derived from this software without specific prior written */
20
/* permission. */
21
/* */
22
/* THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK */
23
/* DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING */
24
/* ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT */
25
/* SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE */
26
/* FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES */
27
/* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN */
28
/* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, */
29
/* ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF */
30
/* THIS SOFTWARE. */
31
/* */
32
/************************************************************************/
33
34
#ifndef __EST_PATHNAME_H__
35
#define __EST_PATHNAME_H__
36
37
#include "EST_String.h"
38
#include "EST_TList.h"
39
40
/** Class representing pathnames. Makes common filename manipulations
41
* available as methods. Different implementations are provided for
42
* different systems.
43
*/
44
class
EST_Pathname
:
public
EST_String
{
45
46
private
:
47
void
setup(
void
);
48
49
public
:
50
51
EST_Pathname
(
void
) :
EST_String
(
""
) { };
52
EST_Pathname
(
EST_String
s) :
EST_String
(s) { this->setup(); };
53
EST_Pathname
(
const
char
*s) :
EST_String
(s) { this->setup(); };
54
55
static
EST_Pathname
construct(
EST_Pathname
dir,
EST_String
basename,
EST_String
extension);
56
static
EST_Pathname
construct(
EST_Pathname
dir,
EST_String
filename);
57
58
// component parts of a filename
59
EST_Pathname
directory(
void
)
const
;
60
EST_Pathname
filename(
void
)
const
;
61
EST_String
basename(
int
remove_all=0)
const
;
62
EST_String
extension(
void
)
const
;
63
64
EST_Pathname
as_file(
void
)
const
;
65
EST_Pathname
as_directory(
void
)
const
;
66
67
int
is_absolute(
void
)
const
;
68
inline
int
is_relative(
void
)
const
{
return
!is_absolute();};
69
int
is_dirname(
void
)
const
;
70
inline
int
is_filename(
void
)
const
{
return
!is_dirname(); };
71
72
EST_TList<EST_String>
entries(
int
check_for_directories = 1)
const
;
73
74
static
EST_Pathname
append(
EST_Pathname
directory,
EST_Pathname
addition);
75
76
static
void
divide(
EST_Pathname
path,
int
at
,
EST_Pathname
&start,
EST_Pathname
&end);
77
78
friend
EST_Pathname
operator + (
const
EST_Pathname
p,
const
EST_Pathname
addition);
79
friend
EST_Pathname
operator + (
const
char
*p,
const
EST_Pathname
addition);
80
81
// solve an ambiguity
82
EST_Pathname
&operator += (
const
char
* addition)
83
{
return
(*
this
) = append(*
this
, addition); }
84
EST_Pathname
&operator += (
const
EST_String
addition)
85
{
return
(*
this
) = append(*
this
, addition); }
86
EST_Pathname
&operator += (
const
EST_Pathname
addition)
87
{
return
(*
this
) = append(*
this
, addition); }
88
89
EST_Pathname
operator + (
const
EST_String
addition)
90
{
return
append(*
this
,
EST_Pathname
(addition)); }
91
EST_Pathname
operator + (
const
char
*addition)
92
{
return
append(*
this
,
EST_Pathname
(addition)); }
93
94
int
operator == (
const
EST_String
thing)
95
{
return
EST_String
(*
this
) == thing; }
96
int
operator == (
const
char
* thing)
97
{
return
EST_String
(*
this
) ==
EST_String
(thing); }
98
int
operator != (
const
EST_String
thing)
99
{
return
EST_String
(*
this
) != thing; }
100
int
operator != (
const
char
* thing)
101
{
return
EST_String
(*
this
) !=
EST_String
(thing); }
102
103
};
104
105
EST_Pathname
operator + (
const
EST_Pathname
p,
const
EST_Pathname
addition);
106
EST_Pathname
operator + (
const
char
*p,
const
EST_Pathname
addition);
107
108
#endif
include
EST_Pathname.h
Generated on Wed Dec 24 2014 09:16:35 for Edinburgh Speech Tools by
1.8.3.1