sipxmedialib  Version 3.3
MpAudioResourceConstructor.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2007 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2006-2007 SIPez LLC.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 // Author: Dan Petrie <dpetrie AT SIPez DOT com>
12 
13 #ifndef _MpAudioResourceConstructor_h_
14 #define _MpAudioResourceConstructor_h_
15 
16 // SYSTEM INCLUDES
17 // APPLICATION INCLUDES
19 
20 // DEFINES
21 // MACROS
22 // EXTERNAL FUNCTIONS
23 // EXTERNAL VARIABLES
24 // CONSTANTS
25 // STRUCTS
26 // TYPEDEFS
27 // FORWARD DECLARATIONS
28 
37 {
38 /* //////////////////////////// PUBLIC //////////////////////////////////// */
39 public:
40 
41 /* ============================ CREATORS ================================== */
42 
45  MpAudioResourceConstructor(const UtlString& resourceType,
46  int minInputs = 1,
47  int maxInputs = 1,
48  int minOutputs = 1,
49  int maxOutputs = 1)
50  : MpResourceConstructor(resourceType,
51  minInputs,
52  maxInputs,
53  minOutputs,
54  maxOutputs)
55  {
56  };
57 
61 
62 /* ============================ MANIPULATORS ============================== */
63 
65  virtual OsStatus newResource(const UtlString& resourceName,
66  int maxResourcesToCreate,
67  int& numResourcesCreated,
68  MpResource* resourcesCreated[]) = 0;
84 /* ============================ ACCESSORS ================================= */
85 
86 /* ============================ INQUIRY =================================== */
87 
88 /* //////////////////////////// PROTECTED ///////////////////////////////// */
89 protected:
90 
91  /* //////////////////////////// PRIVATE /////////////////////////////////// */
92 private:
93 
96 
99  MpAudioResourceConstructor(const MpAudioResourceConstructor& rMpAudioResourceConstructor);
100 
101 
105 
106 };
107 
108 /* ============================ INLINE METHODS ============================ */
109 
110 #endif // _MpAudioResourceConstructor_h_
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourcesCreated[])=0
Create new resource(s)
MpAudioResourceConstructor & operator=(const MpAudioResourceConstructor &rhs)
MpAudioResourceConstructor(const UtlString &resourceType, int minInputs=1, int maxInputs=1, int minOutputs=1, int maxOutputs=1)
Definition: MpAudioResourceConstructor.h:45
MpResourceConstructor is used to construct a spcific resource type.
Definition: MpResourceConstructor.h:36
MpAudioResourceConstructor()
Disable default constructor.
Abstract base class for all media processing objects.
Definition: MpResource.h:56
MpAudioResourceConstructor is used to construct a specific audio resource type.
Definition: MpAudioResourceConstructor.h:36
virtual ~MpAudioResourceConstructor()
Definition: MpAudioResourceConstructor.h:60